Keyword to output asset contents of related asset

Hi everyone,

 

I've got a simple metadata field that is a Related Asset field, and I want to output the contents of that related asset page using a keyword.

 

I can output various attributes of the related asset using keywords like:

 

%asset_metadata_Related_page^as_asset:asset_name%

or

%asset_metadata_Related_page^as_asset:asset_assetid%

 

But I can't get the asset contents of the related page to output.

 

%asset_metadata_Related_page^as_asset:asset_contents% - nothing

 

On the manuals site, it says you can use keywords in this format, but for me neither of these give a result: %asset_metadata_Related_page_asset_name%
%asset_metadata_Related_page_asset_contents%

 

So, is there a way to get the asset contents of that related page, using the ID that I have in the metadata field?

 

Thanks!
Charlie.

 

Hi Charlie, have you tried using _raw or _paint_layout_X? I have no experience with related assets through metadata but have sometimes found asset_contents won’t print without raw or paint layouts.

I think this is what you want:

 

%asset_metadata_Related_page^as_asset:asset_contents_raw%

Hi guys,

 

Still not getting anywhere with the keywords, I've tried: %asset_metadata_Related_page^as_asset:asset_contents_raw%
%asset_metadata_Related_page_asset_contents_raw%

%asset_metadata_Related_page^as_asset:asset_contents_paint_123%

%asset_metadata_Related_page_asset_contents_paint_123%

 

and none of them work.

 

I have found a workaround though - I've nested in an asset listing, which uses a dynamic root node which is the asset_metadata_Related_page keyword, and it then looks down the tree to find Bodycopy assets, and then prints that.

Its not as neat a solution as a keyword, but at least it works!

 

Thanks,
Charlie.

Nice solid workaround, added to the big fat book of workarounds in case I ever get stuck.

Hi Charlie,

 

I think you are after this enahcement #5692. Prior to this change, "asset_contents" keyword was not supported by "as_asset" keyword modifier.

 

Chiran

Hi Chiran,

 

That sounds it exactly! Our upgrade to the latest version of Matrix is booked in for next month, so sounds like after that, I can go back to my keyword.

Brill.

C.

Hi Chiran,

 

That sounds it exactly! Our upgrade to the latest version of Matrix is booked in for next month, so sounds like after that, I can go back to my keyword.

Brill.

C.

 

Yay for upgrades!