Quote from: heliotrope at Nov 14, 2006, 02:39 PM
As you said you could use wayfinder to create the dropdownlist
Create a chunk named wfSelect:
<select>
[+wf.wrapper+]
</select>
Create a chunk named wfOption:
<option value="[+wf.id+]">[+wf.linktext+]</option>
[!Wayfinder? &startID=`xx` &rowTpl=`wfOption` &outerTpl=`wfSelect` &level=1 !]
I guess you could use PHx plugin to render the selected item in the list
:-)
Ah thats an interesting approach Heliotrope - when I mentioned Wayfinder I was thinking about looking to pull the functionality from the snippet code, not to use the snippet itself - which is a much better idea
I believe I follow your example thanks - a miracle in itself really

My intended use of the funtion was to call it from eForm (using the built in event) to generate a form field dynamically. Would this somehow be possible using the method you describe?
Any chance you can expand a little on the phx application please? Very curious about this as I dont quite understand but intend to use phx for other things in future.
Quote from: identity at Nov 14, 2006, 02:45 PM
I think I’d try it with Wayfinder first... but then again I haven’t delved into the API yet out of similar "fear & lack of knowledge" 
I’ve actually started to build a solution using the getDocumentChildren API call, and whilst its untested as yet with a bit of forum searching it seems that its not that difficult to implement (fingers crossed for when i actually test it out) although based on my non-existant PHP skill level I guess that Wayfinder may still be a more flexible solution.
Once again, thanks for the tips.
Steve