I am working on a snippet that grabs document info for the page it is called from using $modx->documentIdentifer. When this page is aggregated by Ditto, the snippet call on the page gets the Ditto pages documentIdentifer. Is there a reliable way to get the page’s doc id for retrieval of properties and TVs specific to that document when every iteration of that snippet shows the Ditto doc id instead of the documents doc id?
Instead of just placing [[Snippet]] in the doucment content, the only solution I have so far is to pass an $id parameter.
It seems unnecessary to call [[Snippet? &id=`1`]] on page 1, [[Snippet? &id=`2`]] on page 2, [[Snippet? &id=`3`]] on page 3, [[Snippet? &id=`etc...`]]
I use allways the ditto-placeholder [+id+] to get the documentIdentifier of the related documents. Is it that what you are looking for?
[[snippet? &id=`[+id+]`]]
Thanks for the clarification OpenGeek. I’ll just leave it be and pass an id parameter.