Matrix Version: 5.5.0.2
I’m having trouble getting the dynamic rootnode of a Calendar Events Search Page asset to update using keyword replacements to pass the desired rootnode value.
I have a Calendar Events Search Page (#54321) with its “Replacement Root node for the listing” set in the Dynamic parameters to get the variable parentID
.
Then, in a paint layout, I’m trying to pass an ID (1234) to the parentID
variable using the asset’s metadata.
It works if I hardcode the ID, but not if I try to do it dynamically.
So on the paint layout %asset_metadata_desiredValue%
returns 1234.
Method 1:
Using the standard keyword repplacement value as a modifier technique:
%globals_asset_contents_raw:54321^with_get:parentID={asset_metadata_desiredValue}%
the %root_nodes%
on the Calendar Events Search Page shows 1 (the primary root node).
Method 2:
Using the method outlined here
<script runat="server">
print('%' + 'globals_asset_contents_raw:54321^with_get:parentID={' + %asset_metadata_desiredValue% + '}%');
</script>
the %root_nodes%
on the Calendar Events Search Page also shows 1 (the primary root node).
(I’ve also tried using {globals_asset_metadata_desiredValue} to no avail).
Method 3:
But if I hardcode the variable, the %root_nodes%
on the Calendar Events Search Page show 1234
and results are returned as expected:
%globals_asset_contents_raw:54321^with_get:parentID=1234%
Am I missing something? Or is it just borked?