[thelist] ColdFusion and PhP

rudy r937 at interlog.com
Sat Jul 7 19:54:24 CDT 2001


>  when I get to XSSI modular nirvana I'll document it for evolt.

what a coincidence, i was working on something very similar just now!

you can have it, martin, if it will help

<tip type="XSSI">

here's a site-wide footer (thus, an include file) featuring links that grey
themselves out

<p>
<!--#if expr="$thisis = /index/" -->Home
<!--#else --><a href="index.html<!--#echo
var="qstring" -->">Home</a><!--#endif --> |
<!--#if expr="$thisis = /about/" -->About
<!--#else --><a href="about.html<!--#echo
var="qstring" -->">About</a><!--#endif --> |
<!--#if expr="$thisis = /sitemap/" -->Site Map
<!--#else --><a href="sitemap.html<!--#echo var="qstring" -->">Site
Map</a><!--#endif --> |
<!--#if expr="$thisis = /search/" -->Search
<!--#else --><a href="search.html<!--#echo
var="qstring" -->">Search</a><!--#endif --> |
<!--#if expr="$thisis = /contact/" -->Contact
<!--#else --><a href="contact.html<!--#echo
var="qstring" -->">Contact</a><!--#endif --> |
<!--#if expr="$qstring = /textversion/" --><a href="<!--#echo
var="thisis" -->">Graphic Version</a>
<!--#else --><a href="<!--#echo var="thisis" -->?textversion">Text
Version</a><!--#endif -->
</p>

thisis is set from the SSI variable DOCUMENT_NAME

qstring is set from the SSI variable QUERY_STRING and will be either
"?textversion" or the empty string "" (or something else which will be
ignored)

it might appear there are text and graphics versions of each page, but
there's actually only one copy of each page -- that last link is a link to
the same page it's on, using the opposite of what the qstring was on this
page

in various other places in the page, qstring is used to decide difference
code snippets between text and graphics versions, e.g. different style
sheet links, rollovers versus text links, et cetera

</tip>

rudy






More information about the thelist mailing list