Closed (fixed)
Project:
SDC - Component library
Version:
1.0.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2025 at 20:23 UTC
Updated:
10 Mar 2026 at 16:30 UTC
Jump to comment: Most recent
Comments
Comment #3
d.fisher commentedI agree however I think it might be better if we make the route configurable with a fallback of /admin/sdc_component_library
I may find time to look at this next week unless you fancy doing so?
Comment #4
d.fisher commentedComment #5
d.fisher commentedAssigning the component library an /admin route will then require that a user also has permission to view admin routes so I suggest that we use something more obscure as the default (to reduce risk of route already existing on a website). I am going to suggest
/sdc-component-library. This should then be overridable in the admin UI so you as a user can set it to whatever works for you, your client, and your project. I also think it would be helpful to everyone - new and familiar users - if we added a link to the component library under the "Appearance" tab of the admin menu. This is on my radar and I will address as soon as I have time to do so.Comment #11
daniel.j commentedAdded a configurable route system for the component library by introducing module config (config/install/sdc_component_library.settings.yml) with schema, a settings form at /admin/config/system/sdc-component-library plus a menu link, updated routing to include the settings route, and added a RouteSubscriber that reads the configured path and sets the component list route accordingly. Updated the README to reference the new default path and documented the configuration screen.
Comment #12
d.fisher commentedOoh nice. I will patch this on a project I'm working on now and check it out!!
Comment #13
d.fisher commentedYes looks good. Just added a link to the admin menu as well.
Comment #14
d.fisher commentedReleased in 1.0.4.
Comment #16
d.fisher commentedThank you everyone for your work on this.