Quote from: kylej at Dec 13, 2006, 07:25 AM
Gordon,
All you need to do is set the value of a placeholder in your snippet. Then as the page passes through the parser the placeholders are replaced by the value set in the snippet.
But that’s not what Wayfinder does is it?
I was looking at the Wayfinder PHP (wayfinder.inc.php) to try to figure out more about how things work.. as far as I could see, Wayfinder grabs a chunk (either dfault or user specified) and then actually replaces ITSELF the placeholders with values for each list-item that it creates...
So I can’t just use [+wf.linktext+] in some arbitrary piece of HTML and have anything sensible happen.. in fact, I wouldn’t expect to be able to do so, because obviously wf.linktext changes for each list-item, and as far as I can see Wayfinder NEVER actually does "setPlaceholder" for that placeholder..
I DO realize that I can use &ph to cause Wayfinder to assign the entire output to a user-nominated placeholder and then use it somewhere else in the page, so presumably this uses the mechanism you refer to, but this seems to be the exceptional case, not the normal case.
Cheers
Gordon
PS You have a very very minor typo on the muddydogpaws Wayfinder documentation where textOfLinks refers to "wflinktext" without the dot.