Is there anyway to set the paint layout via a trigger? I am looking to have an icon for people who have admin access that when they click on it it applies a paint layout to current page.
Not that I know of. What is the purpose of allowing them to set a paint layout? I ask because there may be other ways to achieve what you're trying to do.
Paint layouts can be changed on the fly just like designs. For designs, you use SQ_DESIGN_NAME=… and for paint layouts you use SQ_PAINT_LAYOUT_NAME=…
I dont have a sample handy, but you'll need to configure User Defined paint layouts on the Lookup Settings screen just like you do for designs.
I have a simple paint layout with a nested asset listing of the direct children of the current asset. I just want a quick and simple way to nest the page without creating a div with nest content and specifying it to nest it. Not all pages will have this.
Tagging + a Related Asset Listing would probably be the "simplest" way, but I assume by simple, you want something that can be done via the front-end/simple edit, which AFAIK you can't do with tagging.
[quote]Paint layouts can be changed on the fly just like designs. For designs, you use SQ_DESIGN_NAME=… and for paint layouts you use SQ_PAINT_LAYOUT_NAME=…
I dont have a sample handy, but you’ll need to configure User Defined paint layouts on the Lookup Settings screen just like you do for designs.[/quote]
i tried those codes but wont work…
http://www.domain.com/?a=9395&SQ_PAINT_LAYOUT_NAME=paint_lay
actually the asset to be accessed already has been set to a certain paintlayout.
i just want to use triggers so its paint layout will change in some other pages.
is there need to be set before i can use the SQ_PAINT_LAYOUT_NAME= code?