Should I log this as a bug?
I've got an asset listing that is listing standard pages that have a paint layout applied. I just want the asset contents not the contents with the layout applies.
The paint layout is outside of the root-node of the listing. When I use %asset_contents% the listing works but (obviously) applys the paint layout. When I use %asset_contents_raw% I get the content as expected but I am also getting a PHP warning "Supplied dynamic root node [Id: #x] is in an unauthorised part of the system. Defaulting to static root node [CMS0020]".
I'm about to create an "empty" layout as a work around for now and use %asset_contents_paint_x%.
edit turns out this doesn't work either as it seems the layout that is set on the lookup-settings screen for the asset is applied before the layout specified in the keyword for the listing. ho hum
*edit again this is on 3.24.4
Cheers
Owen
It could potentially be the paint layout changing the scope of the listing that is used which avoids the error (masking the actual error you get). I'd be inclined to change the root node of the listing you are using. If you are using a dynamic root node, then the configured root node for the asset listing needs to incorporate all the areas in which the asset listing could be used. If this could be anywhere in your system you can set the root node as 1.
[quote]
It could potentially be the paint layout changing the scope of the listing that is used which avoids the error (masking the actual error you get). I'd be inclined to change the root node of the listing you are using. If you are using a dynamic root node, then the configured root node for the asset listing needs to incorporate all the areas in which the asset listing could be used. If this could be anywhere in your system you can set the root node as 1.
[/quote]
I've found the problem. I was doing this on our test box. Turns out we had some old data in there that had various things setup quite differently. False alarm.