I have used the following to "automate" bgcolor in headers and footers:
<!--#if expr="${DOCUMENT_URI} = /edc/arts/" -->
 td.footer { background-color:green; }
 td.header { background-color:green; }
 <!--#elif expr="${DOCUMENT_URI} = /edc/festivals/" -->
  td.footer { background-color:red; }
  td.header { background-color:red; }
 <!--#elif expr="${DOCUMENT_URI} = /edc/music/" -->
 td.footer { background-color:#ffd700; }
  td.header { background-color:#ffd700; }
 <!--#elif expr="${DOCUMENT_URI} = /edc/sports/" -->
 td.footer { background-color:grey; }
  td.header  { background-color:grey; }
     <!--#else -->
td.footer { background-color:black; }
 td.header { background-color:black; }
<!--#endif -->

but it seems to me that it would be better to use something like
<!--#if expr="${DOCUMENT_URI} = /edc/arts/" -->
<!--#set var="BG_COLOR" value="red" -->
etc
<!--#endif -->
td.footer { background-color:<!--#include file="$BG_COLOR.txt"-->; }

but I keep getting a processing error. in the #include file step.

The server is using a version of Apache which supports XSSI, and I had
created a text file BG_COLOR.txt. Do I need to create the variable in the
config file  to get this to work ( I don't have access permission for that)
or am I missing something very obvious??

TIA



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/02


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to