Matrix Version: 5.34
Hi folks,
Does anyone know a way of pulling through a metadata value to populate the root_node value tag in the menu normal design area?
I’m trying to make the value dynamic so I can set a root node via metadata at page level rather than in the design itself.
I was attempting something like this:
<MySource_AREA id_name="menu" design_area="menu_normal">
<MySource_SET name="settings.class.normal" value="" />
<MySource_SET name="settings.class.current" value="selected" />
<MySource_SET name="settings.class.hierarchy" value="hier" />
<MySource_SET name="root_node" value="asset_metadata_root.node^as_asset:asset_assetid" />
<MySource_ASSET>
<a href="<MySource_PRINT var="asset_link" />" class="<MySource_PRINT var="settings.class" />">
<MySource_PRINT var="asset_short_name" />
</a>
</MySource_ASSET>
<MySource_DIVIDER><br/></MySource_DIVIDER>
</MySource_AREA>
It appears that the value field doesn’t accept keywords though as it’s throwing up errors when submitting the parse file.
Thanks
Oli