So I was running a snippet to output a Wayfinder listing.
I wanted the output to be dynamic since depending on what page
I’d end up on, the list would change.
I decided to use the modx api call:
$modx->runSnippet('Wayfinder', $params);
This method seems to output based on the current document no matter what params I pass.
So If I have nested pages, it would list only documents below even if I passed over $params = array(’startId’ => `2`)
No if I echo a modx snippet call like
echo '[[Wayfinder?startId=`2`]]';
This way output the correct listing on each page.
Anyone know what I am doing wrong?
Thanks
Rich