Bart
(Bart Banda)
April 14, 2018, 1:29am
2
dev12345:
(22222 is the standard page being listed) it prints out the tags associated with the page. If I include it in the default format of the main asset listing with a static value:
%globals_asset_contents_raw:54321^with_get:root=22222%
That works also. But the moment I try to use a dynamic keyword
%globals_asset_contents_raw:54321^with_get:root={asset_assetid}%
It prints out the tags for ALL the standard pages in the list for each of list items (including creating duplicates if more that one page tagged with the same tag).
That’s because global keywords are processed last, at the top level, not when each type format is processed for listing an asset in an asset listing, so in that case the {asset_assetid} relates to the top level %globals_asset%.
2 other ways you could try:
Nest in the 2nd asset listing and use the List Current Asset ID - Asset Listing - Manuals | Squiz Matrix 5 Documentation method.
Or use SSJS and do something like this: Problems with keyword replacement values as modifiers - #5 by tomstringer