[WEB4LIB] SSI

Thomas Dowling tdowling at ohiolink.edu
Wed Feb 16 08:10:30 EST 2000


----- Original Message -----
From: "Gina M Jones" <gmj at wam.umd.edu>
> Hi, I need to do the following,
> use SSI for creating styles for several directories.  The Title Graphic
of
> of each directory has a different graphic.  I don't want to have to
create
> a different header file for each.  Nor do I want to force the user to
use
> the echo var statement, having to put in the specific image, alt tag,
etc.
>
> What I would prefer, if I can, to do is to use if
> statements to the effect that if the file is in such and such directory,
> use 1.gif, else, etc.  That way I only have to do 4.  Help?
>

Why make it so hard?

/foo/index.html and /bar/index.html can both include:

  <!--#include virtual="/includes/header.htinc" -->

/includes/header.htinc includes:
  <img src="header_image.png" alt="">

The /foo/ and the /bar/ directories include different images, both named
header_image.png.  QED.


Thomas Dowling
OhioLINK - Ohio Library and Information Network
tdowling at ohiolink.edu




More information about the Web4lib mailing list