Hi all,
I have a collection of page types with a "website" field.
Is it possible to get this value using a macro? The GetValue("website") expression is returning null.
I know in a transformation I can do Eval("Website"), I was looking for something similar outside of a transformation.
Thanks, Jeff
Are you using CurrentDocument.GetValue("website") -- assuming the macro is on the page with the field?
Hi Zachm
I was hoping to get the value of a child page of the current document.
Jeff
Not sure if this is the correct syntax, but it should be something similar to one of these:
{% Documents.WithAllData[CurrentDocument.Children[0].NodeAliasPath].GetValue("Website") |(identity)GlobalAdministrator%}
{%Documents.WithAllData[CurrentDocument.Children.FirstItem.GetValue("NodeAliasPath")].GetValue("Website")%)
Please, sign in to be able to submit a new answer.