HighDots Forums  

SSI Command Inside Of An SSI File Doesn't Work

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss SSI Command Inside Of An SSI File Doesn't Work in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kurt R. Todoroff
 
Posts: n/a

Default SSI Command Inside Of An SSI File Doesn't Work - 11-30-2007 , 12:38 PM






My file

"index.shtml"

contains the line

<!--#include virtual="xxx/yyy/common/ssi-footer.inc" -->

The file

"ssi-footer.inc"

contains the line

"<div align="center">
Copyright &copy; 2000–
<!--#config timefmt="%Y" --><!--#echo var="DATE_LOCAL" -->.
&nbsp;All rights reserved.
</div>"

The year, 2007, does not appear on the page in the footer. Is this
because the server doesn't know how to parse a file that uses a ".inc"
filename extension?

Previous to my using includes, I used this same code in the file
"index.shtml". The "2007" did appear properly in my site.

If I were to change the filename to "ssi-footer.shtml" (I'm not), how
would I force the server to parse "ssi-footer.shtml" before it parsed
"index.shtml"?

Thank you.

--


Kurt Todoroff
kurt.r.todoroff (AT) comcast (DOT) net

Markets, not mandates and mob rule.
Consent, not coercion.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.