Allow paint layouts to come under the protection of safe edit
Kenny Cameron
We have situations at the moment where we are developing larger restructures to paint layouts, while metadata updates/additions are made to sections. These changes are often too large to leave in safe edit for a long time, as it will block any changes needed outside of this.
Currently, you can set a paint layout to safe edit, and allow drafting changes to pages before it gets published and made live. Would love if we could go a step further. Have paint layout changes come under the same protections that Content and Metadata do while in safe-edit — so we could easily test out swapping to new layouts on live content and let our editors preview them before publishing.
Iain Simmons
Hi Kenny Cameron, you can do this now with User Defined Paint Layouts.
First create a new user-defined layout: https://docs.squiz.net/matrix/version/latest/using/asset-settings/paint-layouts.html#create-new-user-defined-layout
And then use the
?SQ_PAINT_LAYOUT_NAME=
param to view a page with that layout:https://docs.squiz.net/matrix/version/latest/developing/designs/alternative-designs.html#creating-a-hyperlink-to-a-user-defined-paint-layout
You can even view Safe Edit content with the alternative paint layout by also using the nocache suffix:
/_nocache?SQ_PAINT_LAYOUT_NAME=
.Kenny Cameron
Hey Iain Simmons - can't believe I missed this, something we've never actually looked into before. Did a quick test there and looks like it works just as we need it. Many thanks, feel free to close this off :)