try:
[[Wayfinder? &startId=`[[*parent]]` &excludeDocs=`[[*id]]` ]]
bear in mind, if your current is a folder it will hide the sub items as well, so on your 'location' page you might want to have the call to not exclude the id (or it wont list the sub items) so your 'location' page template will need a different call to not exlcude the ID.
Should work
Might have to faff with the cached and uncached call though.
On a side note, you might also have trouble with aliases for the pages unless you have URL path turned on so unless you are using the structure for URLs as
by-location/location-1/obesity
by-location/location-2/obesity
by-location/location-3/obesity
etc
edit (again):
if yours location tempalte and sub page template is the same, you cna utilise If to display different content. (NOT TESTED btw its from memory)
[[If?
&subject=`[[*isfolder]]`
&operator=`EQ`
&operator=`1`
&then=`[[Wayfinder? &startId=`[[*id]]`]]`
&else=`[[Wayfinder? &startId=`[[*parent]]` &excludeDocs=`[[*id]]`]]`
]]
This obviously needs IF installed but essentially checks if the current is a container, if it is then display elements starting from itself, if it isnt a container then display itesm from the parent.
[ed. note: Tyreal2012 last edited this post 11 years, 3 months ago.]