[thelist] RFC Q

rudy r937 at interlog.com
Tue May 22 18:28:33 CDT 2001

>Ceci n'est pas une cig

hi paola

brilliant!!   a triple pun!!   rené magritte would be proud of you

well, i guess that was sufficiently off-topic to require a tip...

here's how to do a "smart" nav bar using SSI

at the top of each page, set a variable called "thisis"

    <!--#set var="thisis" value="${DOCUMENT_NAME}" -->

then create an include file for the nav bar as follows

   <!--#if expr="$thisis = /home/" -->Home
      <!--#else --><a href="home.html">Home</a><!--#endif -->
   <!--#if expr="$thisis = /products/" -->Products
      <!--#else --><a href="products.html">Products</a><!--#endif -->
   <!--#if expr="$thisis = /faq/" -->FAQ
      <!--#else --><a href="faq.html">FAQ</a><!--#endif -->
   <!--#if expr="$thisis = /contact/" -->Contact
      <!--#else --><a href="contact.html">Contact</a><!--#endif -->

then just copy the nav bar include file into every page

   <!--#include file="navbar.shtml" -->

note that the include file has to get processed by SSI

on the Home page, Home is text, not a link, and so on...


More information about the thelist mailing list