- Issue created by @AaronChristian
Would be a nice feature to be able to sort the sections on the UI Kit via config.
Right now they need to be manually added to the glossary_defaults TWIG array inside of page--ui-kit.html.twig
, it would be great if we could manage this array in a more intuitive way, possibly by a weighting system that would allow nesting structures with options to turn the modal off and rename the title vs. the key (which needs to match the section folder name & the template name inside of it.)
If we could save this to config and use as a variable in the page template that would clean things up nicely.
{# Create default UI Kit glossary #}
{% set glossary_defaults = {
'foundations': {
'color': {
'modal': 0,
},
'iconography': {},
'typography': {
'modal': 0,
},
},
'components': {
'accordions': {},
'alerts': {},
'buttons_links': {
'title': 'Buttons & Links',
},
'card': {
'title': 'Cards',
},
'carousel': {},
'modal': {},
'navigation': {},
},
} %}
Needs work
1.0
Code