for selecting CMS pages and saving their links - a bit like the one in TinyMCE.
Essentially I need a form output with something like:
Code: Select all
<form>
<select>
<option selected="yes" value="nolink">No Link</option>
<optgroup label="Home">
<option value="/">Home</option>
<option value="/home/homesub1">Home Sub Page 1</option>
<option value="/home/homesub2">Home Sub Page 2</option>
</optgroup>
<optgroup label="News">
<option value="/news">News</option>
</optgroup>
<optgroup label="Help">
<option value="/help">Help</option>
<option value="/help/sub">Help Sub Page</option>
</optgroup>
</select>
</form>
Home
Home Sub Page 1
Home Sub Page 2
News
Help
Help Sub Page
Obviously this actually would need to be dynamic to pick up the actual pages for the CMS and create the form and then save the elements to the database.
(For this purpose, I guess I could ignore External Links, Section Headers and Seperators as theydon't have pages you cna link to.)
I've tried a few things playing with menu templaltes and the Sitemap plugin code, but with no real good results. Does ayone have any useful pointers?