Calling metadata of root node of asset listing


(Timeverist) #1

I am using nested asset listing in a paint layout and want to call a metadata field from the page. Currently if I use the %asset_metadata_metadatafield% in the page contents of the asset listing it just returns the metadata of the asset listing asset. I am after the metadata of the page, basically what this keyword would do in theory, but obviously nested listing don't work...: %globals_asset_metadata_metadatafield:%root_nodes%% 

Thanks in advance!


(Tim Davison) #2

Not sure about for paint layouts, but if I nest an asset listing in a std page I can just use %globals_asset_metadata_metadatafield%.  It will pick up the metadata of the containing page, rather than the currently listed asset.

 

Update: Original question sounds like getting metadata from the containing page, but if you want to get the metadata of the root nodes you would use this syntax:

%root_nodes^as_asset:asset_metadata_metadatafield%

Note, however, that this will only work if the root of the listing is a single asset.  If there are multiple root nodes the above will not work.