- 🇧🇪Belgium Yanivs
Don't forget to clear cache after adding an ID to a section via the YAML field.
Although we can add IDs via "X wrapper attributes (YAML)" via id: testing-1-2-3
, it would be really handy to add a dedicated field that could be provided to users which would could provide "friendly ids" in a way that is easy for them to understand.
Use cases:
See also:
https://www.drupal.org/project/layout_builder_component_attributes →
There is currently no UI to add IDs.
Add the ability to add ids.
Write code - Touch points include:
Adjust the layout plugin to get/set the id
src/Plugin/Layout/BootstrapLayout.php
If not set, perhaps an autogenerated default is assigned?
Consider whether or not to attempt to enforce unique ids.
Add a fields to enter ids.
N/A?
Schema changes?
Original Request by suldan
I could really use an ID on the row element.
The ID could be generated by user input (as for classes) or random hash.
Use cases:
Greetings
suldan
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Don't forget to clear cache after adding an ID to a section via the YAML field.