@Friendica Developers @Friendica Support Currently, I am working on the
issue that the size limit for images to be uploaded is not shown in the upload dialogue. To display this information, I want to extend the
photos_upload.tpl
smarty template. I guess the best way is just to insert a new
<div>...</div>
beneath the submit button. But I see that any
<div>...><div>
has a unique
id
and
class
attribute.
What's the deal with these two attributes, what do I need to consider? Are they mandatory or optional?
And for this very specific case: When I insert
<div>...><div>
for the image size limit, which values should I use for
id
and
class
attributes?
Expected behavior Every node has some max image upload size. We should inform the user on the photo upload page about that limit. Actual behavior There is no such info yet. Steps to reproduce the p...
GitHub
id
and it should be unique in a page, while they can have multiple classes separated by spaces in theclass
attribute and elements can share classes.Form fields are mostly generated through the
field_*.tpl
templates.