Paint Layouts and Asset Listings

Is it possible to use an asset listing to list assets that have a paint layout applied to them, and be able to see that painted layout within the asset listing? I thought I had it, using the keyword that includes the paint layout, but it did not seem to work. Should the paint layout be applied to the assets being listed, or to the asset listing itself?

The %asset_contents% keyword should print the assets (with any paint layouts applied to the asset being listed). %asset_contents_raw% paints the asset without any layouts.

Yeah, I have been using %asset_contents%. The actual asset that the paint layout is used on is showing up correctly, but when listed with the asset listing, and using %asset_contents% it is not displaying how it should, it seems to be using the default. Both are using the correct Type Format.

We'll have to wait until a developer pipes up. :slight_smile:

The paint layout that is used in this case would actually be the one that is (or is not) applied to the Asset Listing, in this case. Paint Layouts are based on the current URL, and this is honoured on Asset Listing pages too (partly because the possibility of multiple paint layouts applied to an asset can create the possibility of an ambiguous selection).

That makes more sense. Thanks Luke.

So, you are saying that I should be applying the paint layout to the asset listing? Or should I be using a user specified layout, and specifying that in the URL?


Yes, the paint layout needs to be applied to the asset listing. You could make it a user specified layout (if you already have one applied) and switch it in the URL.

Got it. Once I knew it was to be applied to the asset listing rather than the actual assets, it was easy.

Are paint layouts also carried through when using nested content?

Only in 3.15. From dev newsletter 132:


NEST CONTENT: PAINT LAYOUT OPTIONS

-----------------------------------------

Added to: 3.15.0 development



The Nest Content Content Type previously styled nested assets “raw” (ie.

according to their printBody() function, without any paint layout

applied). Now it also allows assets to be styled with a paint layout

based on the current URL, or with an arbitrary paint layout.

Thank you. Would a work around for current 3.14 version be to use remote content, and nest the remote content, which is showing that asset listing with a paint layout?


Edit: Looks like Matrix cannot use remote content for its own pages.


It should be able to, as long as the Matrix server can resolve itself properly.

[quote]Only in 3.15. From dev newsletter 132:


NEST CONTENT: PAINT LAYOUT OPTIONS

-----------------------------------------

Added to: 3.15.0 development



The Nest Content Content Type previously styled nested assets “raw” (ie.

according to their printBody() function, without any paint layout

applied). Now it also allows assets to be styled with a paint layout

based on the current URL, or with an arbitrary paint layout.[/quote]



Greg, is there any configuration for this? Or does it just work? Paint Layout Options makes me think there is some configuration somewhere…



We are on 3.16


The new Nest Content content type has radio buttons that allow you to select whether or not to paint with the paint layout (and which layout to apply).

Thanks Avi.