Forum Moderators: phranque
Was wondering if there is an easy way to dynamically update a site map page. That is the page knows when there are pages that have been added or removed and updates the site map page accordingly.
Currently the site I am working on has a site map that is updated manually.
Thanks for any help
Sounds good in theory, though might be subject to problems with sites that grow huge and create extremely large site map pages.
having said that i wonder if a horizontal scrolling site map page might be both interesting and workable?
*goes right off on a tangent*
Neat feature, you can up your own template and it'll fit right in with your site.
I'm sure other site search systems might offer this, but this is one I've tried.
SN
I use one written in asp, & run whenever I add any pages, then save the output as html and upload it. This gives the option to modify the kw density first.
HTH
The code is not pretty and when I have spare time Im gonna rewrite using a regex.
Another way I have used is simply to have a file naming convention - read the file names, trim of anything after and including the "." then replace '-' with spaces.
I've written a script in Perl to do this, doing it in PHP would be similar.
I use the page title as the link text, you can get the title text with a simple regular expression.
As "aspdaddy" mentioned, you need to be able to exclude specified files & folders. I just created an array of items to exclude & checked against that array before processing each file.
I hope this helps,
Bob
Check it out on my Webdesign page. You can find my link in my profile.