I’ve not done a pluggin, but I have made a script that you make a site map with, and it uses the URL structure.
See it in action in this section here:
http://www.ukwindsurfing.org/information/
(and click anywhere in the information section, on this development site)
I made it because I didn’t want all the pages to show in the navigation at once, but open up depending on which folder you are looking at.
It’s specific to my setup at the moment, but I’m sure a good programmer would be able to take the idea and generalise it (NB: I’m not a programmer).
It would probably make a good plugin, but I wouldn’t know where to start on that, I’ll post it if anyone’s interested.
Could I please have the script?
Sorry for the delay, I’ve been away a few days. The script is here:
http://alastc.com/wordpress/navigation.txt
It produces the navigation for the site here:
http://www.ukwindsurfing.org
It’s pretty raw, and worth noting that with the Worpress install I have, you don’t need the .php extension, so I didn’t implement adding that when needed.
I added this script to the the sidebar with:
<?php include(‘/root/to/script/navigation.php’); navigation($_SERVER[‘REQUEST_URI’]); ?>
Let me know what you think…
Thanks a lot
It’s perfect. Do you (maybe) have something like that for the BE too?
Andreas
The BE? I’m not familiar with that…
that script is simliear to what I am looking for.
The link seems to be broken.
Do you still have it?
Yes, sorry, I’ll try and get that back up. If you want to email me in the meantime I can send you the raw php. (ac at alastc.com).