sorry DFrag, no answer from me but I'm really interested in this too.
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*
oh, and welcome to the forums :-)
A free search service I use (freefind) also builds a site map. You can choose the depth and other settings... if you pay you can get rid of ads too.
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.
One way is to use a server side script to spider your webroot, parsing out the page titles and constructing links. Its a bit of work to get it to include/exclude the pages/folders you require.
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.
I was looking at doing the same thing in PHP. Only problem is getting the page title as opposed to the file name. How are you doing this in ASP?
Using the filsystem object, grab the file contents into a string, then use string functions mid/left/right/instr to parse out the text between the title tags.
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 was looking at doing the same thing in PHP. Only problem is getting
> the page title as opposed to the file name. How are you doing this in
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,
I wrote one in ASP. It's a little crude, but you can at least control what's being mapped and what's not. It also supports multiple languages, a maximum level of searching the tree, avoiding recursion, and excluding certain pages.
Check it out on my Webdesign page. You can find my link in my profile.