I have a Repeater Web Part. It's Path value is set as ./SomeChild/%. In my HTML Envelope I would like to use the DocumentName of the parent of the repeated content; basically the DocumentName of SomeChild.
./SomeChild/%
If I use the macro {% Path %} then it renders ./SomeChild/% but it appears to be text and not an Object. Is there another macro that I can pass that output to in order to get a Document Object or, given that there's a wildcard at the end, a collection of Document Objects that I could .First().Parent().DocumentName()?
{% Path %}
.First().Parent().DocumentName()
Basically I want to display the parent Document Name of my repeated content as a header. There has to be an obvious way to do this but I can't figure it out.
The macro "Documents" or "RootDocument" may be where you need to go.
Here's some examples:
{% Documents["./SomeChild/%"].First().DocumentName() |(identity)GlobalAdministrator%}
if this helped, please mark as answered
{% Documents["./SomeChild/%"]|(identity)GlobalAdministrator%} that turned ./SomeChild/% into /root/FirstLevel/SecondLevel/CurrentDocument/SomeChild
{% Documents["./SomeChild/%"]|(identity)GlobalAdministrator%}
Please, sign in to be able to submit a new answer.