Applying paint layout to contents of asset specified by "Metadata Related Asset Field"


(Evan Wills) #1

We are trying to render content in the right hand column based on the contents of a number of "Metadata Related Asset Field" specified by editors. We would like to apply a paint layout when rendering the asset's contents as you can do with an item within an asset listing, using the keyword %asset_contents_paint_123456%

 

We have tried a number of approaches including

  • (on a standard page) %globals_asset_metadata_related_asset_1^as_asset:asset_contents_paint_123456%
  • creating an asset listing with the dynamic root node: Replacement Root node for the listing (must be a child of the static root node)     Current Asset     keyword - asset_metadata_related_asset_1

Which is intended to list the item specified by the value of the metadata field "asset_metadata_related_asset_1"

 

Is what we're trying to do possible with matrix?


(Bart Banda) #2

Should be possible, if not with keywords then definitely with the asset listing approach you mentioned.

 

Have you tried using   

%globals_asset_metadata_related_asset_1^as_asset:asset_contents_paint_layout_id_123456%   

 

Alternatively, using the asset listing approach, use the globals format instead as the dynamic ID value and use set value:  %globals_asset_metadata_related_asset_1%


(Evan Wills) #3

Should be possible, if not with keywords then definitely with the asset listing approach you mentioned.

 

Have you tried using   

%globals_asset_metadata_related_asset_1^as_asset:asset_contents_paint_layout_id_123456%   

 

Alternatively, using the asset listing approach, use the globals format instead as the dynamic ID value and use set value:  %globals_asset_metadata_related_asset_1%

 

Hi Bart

 

I was using the wrong keyword. Using

asset_contents_paint_layout_id_123456

as you showed worked a treat.

 

 

I've also since discovered, (thanks to Chris Horikx), that using an asset listing with the "Dynamic parameters" "Parameter" option

Array of specific asset IDs or selection group (specified assets must be children of the static related node)

 with Source:

Set value globals_asset_metadata_related_asset_1

Also works.

 

Is the globals keyword likely to renders faster than the asset listing?


(Bart Banda) #4

 

Is the globals keyword likely to renders faster than the asset listing?

 

Yes :)