When trying to configure a nested asset listing which needed a paint layout, I found something strange.
Naturally I would think to apply a paint layout to a nested asset, I would use the paint layout options on the nested content div, and set it to lookup settings, or add a new paint layout. Strangely, these seemed to not affect anything.
But when adding the paint layout to the asset the the asset listing was nested in, it successfully added the paint layout to the nested content.
This seems strange, and is odd that the nested content paint layout options have no effect, as you would think this is where these settings would be set.
Would this be a bug?
[quote]When trying to configure a nested asset listing which needed a paint layout, I found something strange.
Naturally I would think to apply a paint layout to a nested asset, I would use the paint layout options on the nested content div, and set it to lookup settings, or add a new paint layout. Strangely, these seemed to not affect anything.
But when adding the paint layout to the asset the the asset listing was nested in, it successfully added the paint layout to the nested content.
This seems strange, and is odd that the nested content paint layout options have no effect, as you would think this is where these settings would be set.
Would this be a bug?[/quote]
None of the nesting options that apply a paint layout let the paint layout be inherited. Its not clear if this is a bug or a feature. So they will not affect the contents of a nested asset listing.
This is one of the reasons we added the %asset_contents_painted_XXX% keywords recently - these let the asset listing choose the paint layout, regardless of inheritance.
[quote]None of the nesting options that apply a paint layout let the paint layout be inherited. Its not clear if this is a bug or a feature. So they will not affect the contents of a nested asset listing.
This is one of the reasons we added the %asset_contents_painted_XXX% keywords recently - these let the asset listing choose the paint layout, regardless of inheritance.[/quote]
I am not sure this is a matter of inheritance. It just seems that none of the paint layout options for a nested content div even work, or apply anything. That is why I thought it was strange that adding the paint layout to the asset that has the nest, which then correctly applies the paint layout to the nested content div.
Can you show an example?
The reason I thought you might have seen the inheritance issue is that you said you were trying to nest an asset listing, and if it doesnt inherit the asset listing paint layout only applies to the body, not the nested assets.
Sure, this is the page where I had the question: http://www.puc.edu/puc-life/sports-athletics/pioneers/cross-country
This is a normal standard page asset, but the schedule that you see is a nested asset listing that lists Single Calendar events. I needed to have TBA show up if a time is not entered for the single calendar event. So, I have to use a paint layout and conditional keywords. Applying my newly created paint layout to the nested content div did nothing. It just listed the items without any styles, pretty much just printing the %asset_contents% keyword for the type format, without using the paint layouts styles. I found this odd, as none of the nested contents paint layout settings would change this. Then, when I applied the paint layout to the standard page asset, which has the nested asset listing, it then styled the nested asset listing correctly using the paint layout. I just found this strange, and is why I questioned it, because I wondered what the nested content paint layout settings are there for, if they don't work how they are expected to.
Let me know if you want me to explain this more. :)
If you nested a single event with the nested paint layout it would work as expected. This is a case of the inheritance issue. The type formats for the asset listing dont inherit the paint layout applied through the nesting, but they will inherit a paint layout applied to a page.
In the 3.18.4 you can use %asset_contents_painted_XXX% to apply a paint layout directly to the assets in the listing (where XXX is a named paint layout or an asset ID).
Is this a bug? I have to admit its not what I expected when this feature first came out either. It probably could be changed, I might have a chat about it with the developers.
[quote]If you nested a single event with the nested paint layout it would work as expected. This is a case of the inheritance issue. The type formats for the asset listing dont inherit the paint layout applied through the nesting, but they will inherit a paint layout applied to a page.
In the 3.18.4 you can use %asset_contents_painted_XXX% to apply a paint layout directly to the assets in the listing (where XXX is a named paint layout or an asset ID).
Is this a bug? I have to admit its not what I expected when this feature first came out either. It probably could be changed, I might have a chat about it with the developers.[/quote]
I understand now, thanks for bearing with me and clearing it up.
Yes, it might be worth looking and as I am sure others have been confused. 