ASP A map for your site with ASP dynamic includes
I present now a little script that I made for the classic map that tells you what position you are on the site like:
Home>> Products>> Sony> Playstation 3
Inside the file you just select which page on your server is set as your home page.
As for the home directory of all, usually when you go to a folder directly without putting the name of the final page, the server points to a page set by default ... which might just be default.htm. ... .. or index.htm or index.php or index.asp ... ... etc. .. make sure that each directory abbia la propria home page...altrimenti , cliccando il link alla directory, vi potrebbe dare il messaggio tipico "directory listing denied"
Anche quando un utente accede al nostro sito inserendo solo l'indirizzo, comunque il server punta alla nostra home page.
Lo script in sostanza lavora sulla url visualizzata in quel momento, e non come in genere questi script fanno, direttamente sul server controllando i file all'interno delle cartelle.
Con una serie di split, si rileva così la root principale, tutte le eventuali directory, e la pagina finale nella quale ci si trova.
Lo script sostituisce il simbolo "-" con lo spazio, perché io ho l'abitudine di mettere al posto degli spazi il carattere "-" Which is interpreted by the engine as a space.
I usually also replace the anchor text "home" that brings me back to the home page, with the most appropriate keywords: you can see the example running on this site:
Software
.. and ecommerce sites created with that software.
The script is inside a div that you can include anywhere on your site (in pages of course. Asp)
download the Zip file and try: Milanos: Map of the site in ASP
0 comments:
Post a Comment