Grouped asset listing - accessing root_nodes


(Bmasters) #1

Matrix Version: 5.4.3.1

I’ve got 2 asset listings - one is nested inside the other, with a replacement root of %list_current_asset_id%

The 2nd level listing is grouped by a metadata field.
Inside the Group Format, I’m trying to use the keyword %root_nodes% as such:

<h3>Choose your %root_nodes^as_asset:asset_name% - %group_name% course:</h3>
<ul>%group_listing%</ul>

This is returning as blank for the Group Format, but works fine in both the Type Format and Page Contents.

Is there something I’m missing, or should I write a quick script?


(Bart Banda) #2

Hmm, seems the %root_nodes% keyword is not working in the Group Format.

Could you pass it as a dynamic GET parameter from the first listing and use %nested_get_root_nodes% to retrieve it perhaps?

Reported bug for it here: https://squizmap.squiz.net/matrix/11662


(Bmasters) #3

Thanks Bart.

FYI, I tried using %nested_get_XXX% and had the same issues - working fine in the Type Format and Page Contents, but blank in the Group Format.

I’ve gotten around it for now using some JS - but I’ll keep an eye on that bug report, so I can switch it out for %root_nodes% if/when it is resolved.