Feature request: default value + placeholder in edit modeBrowser Info Environment
I guess the block designer might look crowded with this feature but adding those fields to a finished block is quite uncomfortable (and you loose the feature to re-edit the block in the Block Designer afterwards).
OK, could be good indeed. Not for each field type though, but for some indeed. Uhm, what should a default value do then? Is this only upon CREATING a block and not editing? Because if you once created a block, I can assume you do not want to see a default value if you left a field blank! Right?
It sure will be crowded, will have to see what I can do about that.
Let me know what you think :)
I guess this might not apply to most other users. Placeholders would be nice in edit mode to give further details without cluttering the form. :)
a) placeholders for appropriate input types: explaining the purpose of the input field without messing up the form. (hints for seperators, limits, ...)
b) optional fallback values. that are used if the field is left blank when the block is rendered. This way you could easily change a value for many block instances at the same time without the need to edit each individually. The placeholder in a) would in addition give the block creator any freedom to mention this behavior.
(E.g.: I have a lot of instances of a Teaser block that all share (more or less) the same "show more" text. When the client decides to have a different linktext in all teaser...this could easily be done with a fallback value and clearing the cache) :)
Default values would serve a different usecase and they could easily be added in a single place in the add() function if needed.
As you might have noticed, I've been updating block designer. These changes have been applied to the "text box" field type. Hope you like it :)
yes! Package is updated and I took a look at the diff. :)
I still have to build some new blocks from scratch to test the features.