-
- 2,877 Posts
-
- 561 Posts
Mido, that looks cool. But yeah, definitely also what Mr. Haw said.
That gives you the number of the doc. One time I needed the name of the parent, so I wrote a tiny snippet that would grab the "pagetitle" connected to the parent ID. But I imagine that there are better ways to do that, too. And besides, using the &displayStart parameter on Wayfinder also served to give me what I needed in many of those menu situations.
-
- 2,877 Posts
Hey! Thanks for sharing the code! Always!
-
- 2,877 Posts
try
[*parent:ne=`0`:then=`<a href="[~[*parent*]~]">Back</a>`:else=``*]
-
- 863 Posts
mrhaw - thanks for that, it works in inserting a link to the parent container, but I am trying to make the link appear only below certain levels.
Is there a way to configure it to only appear below, say, level 3 or 4?
-
- 2,877 Posts
Where do you want to place the link? In template, snippet tpl
or content object?
-
- 863 Posts
I’d like to place it in the template, but as a conditional so it only appears when the document is only below a certain level...