Im trying to get the resource id of the current page but within a getResources call (which calls data from a separate directory)... the reason being im taking the user out of one directory and into another to show shared content and I need the resource id stored so I know where they came from...
So my tree setup is basically this
Event
----Event 1 (id=5)
-------Speaker Listing (using getResoucres call)
----Event 2
-------Speaker Listing (using getResoucres call)
.
.
.
Speakers (id=10)
----Speaker 1
----Speaker 2
----Speaker 3
My getResoucres call....
[[!getResources? &resources=`10` &depth=`0` &includeContent=`1` &showHidden=`1` &tpl=`SpeakerListTpl` &sortby=`menuindex` &sortdir=`asc` &includeTVs=`1` &processTVs=`1` &limit=`0`]]
This is my link out in my SpeakerListTpl
<a href="[[~[[+id]]?&eventid=[[+parent]]]]">
Using the obvious [[+parent]] only gives me the id of the resource where the getresources call is referencing in this case id=10
But im looking for id=5 (i.e the event id)
Any clever way to do this?
Many thanks