[thelist] SSI question

aardvark roselli at earthlink.net
Fri Sep 15 14:25:31 CDT 2000

i have a different method, myself...

i have my navigation stored in an include and all pages call it... the 
navigation determines the path of the page, and depending on 
where the page is and what the file name is, builds the appropriate 
state for the buttons and such...

for example:

ScriptName = Request.ServerVariables("SCRIPT_NAME")

gets me the name of the current page as 'ScriptName', which i can 
now pull apart:

<% IF instr(1,ScriptName,"contact/",1) > 0 THEN %>
html goes here...

i use a similar method to build a human-readable bread-crumb trail 
based on the current directory... but it works best when you use 
understandable names as folder names, and has the added benefit 
of making the URL in the address bar make sense as well...

> From:"Ron White" <rwhite at edverify.com>
> <%
>  NavTab = "4" << what tab
>  %>
> <html>
> <head>
>  <title>Board of Foo</title>
>  <link rel="stylesheet" type="text/css" href="/include/styles.css"
> title="style"> </head> <body marginwidth="0" marginheight="0"
> topmargin="0" leftmargin="0" background="/images/pagebackground.gif"
> bgproperties="fixed">
> <!------------------------------------ TOP NAVIGATION
> BAR ----------------------------------->
> <!--#include file="../topnav.asp" -->  << code in here uses NavTab to
> select correct menu <!---------------------------------- END TOP
> NAVIGATION BAR ---------------------------------> <!--#include virtual
> = "/include/foo.inc" -->  << The actual page

More information about the thelist mailing list