Dynamic root node Not working for asset listing nested in a paint layout


#1

Matrix Version: 5.4

I have a couple of “Standard Pages” that share a common paint layout. Each page has a JSON data source asset as a child asset.

An asset listing is nested inside this paint layout using %globals_contents_raw:xxxx% keyword

The asset listing has "Replacement Root node … " configured using the option “Current Asset --> Asset ID” and is supposed to list “Data Source Record Set” from the JSON data source listed under each standard page.

I always get “No Results Found” message …

Under "Replacement Root node … ", I also tried “Current Asset --> Keyword” option. Nothing seems to be working.

The asset listing prints results if I use a “Static Root node”. Its the “Dynamic root node” option failing every-time. I really don’t want to create a multiple “asset listings” for each page.


(Bart Banda) #2

As the dynamic root node, try using Set Value and use %frontend_asset_assetid% as the keyword, which should resolve to the Standard Page asset you are viewing on the frontend as the root node.

To check which root node the asset listing is using when it’s trying to list asset, you can also try printing %root_nodes% to see where it’s trying to list assets from.


#3

Thanks Bart. Also it works if use a nested Asset Listing.