I have checked the Wayfinder and Ditto docs, but can’t find anything there to help me -
What I would like to do is to create a dynamic menu that always excludes the document currently being viewed, i.e:
I have a subsection of the site called "articles", with ~20 articles in there. At the bottom of each article, I want to provide the user with links to each other article, and preferably, to exclude the currently viewed article from that list.
Is it possible with either Wayfinder or Ditto?
-
☆ A M B ☆
- 24,524 Posts
&excludeDocs=`[*id*]` should do the job.
thanks sotwell, but that is not a dynamic solution (unless I am missing something). I need it to automatically work for any document I add as a child to the "articles" parent. Using excludeDocs I would have to manually edit the call for each page.
-
☆ A M B ☆
- 24,524 Posts
The [*id*] part will cause the excluded document to be the currently displayed page. I am sorry if I misunderstood; I thought that was what you wanted.
I can see you’ve used it successfully on the site and got rid of the self link.
Glad it worked for you.
-
☆ A M B ☆
- 24,524 Posts
I was about to suggest a &hereTpl template chunk with no link...