-
Notifications
You must be signed in to change notification settings - Fork 16
Replace is_panelized by has_page_layout variable. #36
base: 2.x
Are you sure you want to change the base?
Conversation
To add some context... this PR will mean that Panelizer can be swapped out by site builders who would prefer to use an alternate system: Layout Builder, Display Suite or Field Layout. In the future we see a move to Layout Builder but some people may just want to return back to Field Layout. Now that the variable is more generic it means that the page layouts which are defined in govcms_layouts will be deemed to take up the full width. ie. the page template will not be putting in a container div limiting their width. This means that full page layouts which make use of Paragraphs and Modifiers will still have the ability to get backgrounds to go edge to edge. The way has now been opened to swap out Panelizer for the full content view mode without any loss of functionality. As Vit says, this new code has been tested against 4 site installs each using a different paradigm for handling the fields. |
I've tested the PR for all four layout systems (core Layout Field, Layout Builder, Display Suite and Panelizer) and all the layouts looks the same in each of this system. So it will be easy to remove Panelizer and replasce it with different layout mechanism and still use all the provided layouts with their logic. |
This improvement dramatically increases the utility of the theme by making it work for site builders who do not wish to use the Panels ecosystem. The theme and foundations will get a 3x flexibility boost if it can be merged. Ideally it would get in before the initial release. |
Hi @kybersoft - sorry it's taken so long to get to this. Can you have a look now that we've updated the 8.x-1.x codebase - there's a merge conflict in style.css (easy fix obviously), but of more concern is that there are now two competing |
Hi @tobybellwood , I merged the main branch and fixed the duplicated function (combined both parts together). Now it looks fine from my point of view. |
Thanks @kybersoft - I've just rebased this onto 2.x, with an intent to release it soon. Does the |
Hi @tobybellwood , I checked your rebased version, improved a little bit, and added also the old variable name for backward compatibility, so we can be sure it doesn't break existing implementations. |
Hi all,
as a reaction on issue govCMS/GovCMS8#133 I prepared more generic solution than current "is_panelized" variable, so theme is now completely without relation to word "panel".
It's based on Layout Discovery module preprocess, so it works for all 4 possible page setup situations (Display Suite, Field Layout, Layout Builder and Panelizer). All tested separately.
Implementation details:
Could this be merged? Thank you.