karen2205: Me with proper sized mug of coffee (Default)
Karen ([personal profile] karen2205) wrote2004-01-30 09:17 pm

OK - help needed

Right, the website is now working again - (it was the .htaccess file causing the problem); I shouldn't need to do anything other than label files .shtml to make the SSI work.

But the SSI doesn't work....



The following is the code in navbar.html:

<div class="ul">
<map name="Navigation Bar">
<ul>

<li>
<span class="accesskey">
<a accesskey="s" href="#foo">Skip Navigation Bar</a></span></li>

<li>
<!--#if expr="pagename = 'home'" -->
<span class="bold">Home</span>
<!--#else -->
<a accesskey="0" href="index.html">Home</a>
<!--#endif -->
</li>

*snip code that matches the above for the other link*

</ul>
</map>
</div>


This is what I inserted into the file snippetsorderform.shtml
(now removed from the server)

<!--#set var="pagename" value="snippetsorderform" -->
<!--#include virtual="/navbar.html" -->

And it didn't work. I've tried playing with the quoting, with makng "pagename" a variable, by using a $ sign, even tried googling where I found http://httpd.apache.org/docs/howto/ssi.html (yes, what [livejournal.com profile] nou had suggested), and it looks like the code is right.....but it *can't* be. It failed to abide by the 'if' command and displayed both bold non link and link for each item in the list.

Anyone able to look at this with a fresh pair of eyes?

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org