Make section ordering configurable through the UI

Created on 24 July 2023, over 1 year ago

Problem/Motivation

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': {},
    },
  } %}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇨🇦Canada AaronChristian Kelowna, BC

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024