Paint layout equivalent for 'set_design_name'


(Andrew Harris) #1

OK, I know I can invoke a user specified design with: SQ_DESIGN_NAME=test

… and I can make that sticky by adding: SQ_ACTION=set_design_name

 

So I was hoping that I could use: SQ_PAINT_LAYOUT_NAME=test

… and something like SQ_ACTION=set_paint_layout_name

to also make that stick, but it doesn't work :-(

 

Is there an equivalent? Can't find anything in the manuals.


(Chris Horikx) #2

Hi Woo,

 

Check out this link:

https://manuals.matrix.squizsuite.net/designs/chapters/using-alternate-designs#Creating-a-Hyperlink-to-a-User-Defined-Paint=Layout

 

That keyword should work

 

Chris


(Andrew Harris) #3

Chris,

yeah thanks, but as I said, I don't have a problem applying the paint layout, what I want is to make it sticky for the session in the same way as 'set_design_name' does for a user defined design.

 

I realise it's an edge case, I'm just surprised there's not an easy to guess equivalent.


(Chris Horikx) #4

I'm not sure about the existence of such a keyword.

 

Would it be feasible to have all assets on the one paint layout and enclose the different layouts with conditional statements perhaps using session variables?


(Andrew Harris) #5

Chris,

thanks - don't worry about it. I was just checking that I wasn't missing something obvious.

I'm using the user defined design/paint for testing on a live site, so I don't want to make public/visible changes - just tinkering in the background. It's just a nuisance to have to apply the paint layout each page load when the design can be made sticky.


(Chris Horikx) #6

Agreed, I think I remember being in the same situation years ago. 

 

Can you apply paint layouts by contexts? If you can, you might be able to use contexts and set it for serving your IP only.


(Bart Banda) #7

OK, I know I can invoke a user specified design with: SQ_DESIGN_NAME=test

 

This also sets the Paint Layout as a user defined design as well. 

 

So SQ_DESIGN_NAME affects both designs and paint layouts.

While SQ_PAINT_LAYOUT_NAME only affects paint layouts.

 

So if you apply a paint layout as a user defined design for name "foo".

 

Using SQ_ACTION=foo will still set it for the Paint Layout as well.