- πΊπΈUnited States b0b Bethlehem, PA
+1 for this feature. Or another way to configure this might be to Enable/Disable content types within the Section Library admin.
- π¨π¦Canada kpaxman
What would be *really* neat if it worked *with* Layout Builder Restrictions, and just hid/prevented use of templates that contained elements that weren't allowed.
As it is, we're probably going to have to figure out how to restrict it to just the content types that have common options. (Can't have people injecting multi-column sections into content types that we don't allow them, for example.)
- πΊπΈUnited States kevinquillen
What would be *really* neat - if it worked *with* Layout Builder Restrictions, and just hid/prevented use of templates that contained elements that weren't allowed.
That would be my suggestion as well.
- First commit to issue fork.
- π¨π¦Canada igorbiki
Created configuration form that allows selection of content types and/or dashboards where section library is allowed. Idea is to list only view modes that have layout builder enabled per content type, and if there is dashboards enabled. Save changes, and then on preRender check if storage id matches those of saved configuration.
Implementing this as part of layout builder restrictions may be more complex than this approach.
- Merge request !23Adding settings form and logic to enable/disable section library per content type β (Open) created by igorbiki
- Open on Drupal.org βCore: 10.2.1 + Environment: PHP 8.1 & MySQL 8last update
10 months ago Waiting for branch to pass