Dynamic Paint layouts?

I was wondering could metadata be used to select a paint layout to be applied to an asset?


As in, the paint layout is chosen from a dropdown menu in the metadata of the page to be painted (somehow) and this determines what paint layout is applied? I am looking for a way to apply a paint layout without having a user go through the Lookup Settings menu and for a quick way to choose paint layouts in simple edit.


Sadly, no -- there is no link between Paint Layouts and Metadata. Also, because Paint Layouts are URL specific, they need to be applied to all the URLs the asset has. We usually recommend you take this choice out of the hands of users and make it yourself hierarchically.

Aye. It seems to me though that paint layouts do not carry over in cloned assets or are being overwritten by inheritance of the parent asset its cloned in which means I have to reapply it everytime I clone it?


No big deal really and other thoughts are coming to mind to get what I need done now. As in standardize my page more and use an asset listing to allow the user to swap out different images on the paint layout via metadata and asset positions.

You can however apply a paint layout to a high level/parent asset, then use conditional keywords to customise the presentation based on the metadata.

I'm not at work now so can't tinker, but what is the purpose of the paint layout user setting? Looks very much like the design setting where you can insert a text_only design or whatnot. Could I really use that to trigger paint layout changes like you do the design changes? Or is the functionality different?

I haven't needed to use it before, but yes, it should work in the same way as setting designs.

Yes I was able to apply a new paint layout using…

    ?SQ_DESIGN_NAME=%asset_metadata_xxx%

Good stuff.



Oh and if you want to change a design AND a paint layout, just name the user design/layout the same name. Cheers!


Or, you can use SQ_DESIGN_NAME=xxx&SQ_PAINT_LAYOUT_NAME=yyy