Skip to main content
Participant
August 13, 2008
Question

Conditional SSIs and Test Server

  • August 13, 2008
  • 5 replies
  • 440 views
I use conditional Server Side Includes (SSIs) in a number of my developed sites.
For example in the 'index.html' file I use;

<!--#include virtual="header.html" -->

and in the 'header.html' i use;

<!--#if expr="${file} = index.html" -->
SOME HTML HERE
<!--#endif -->

I can not get the Dreamweaver test server to execute the conditionals in the 'header.html' file.
I am assuming that is because it is an embedded (nested) file.

Does anyone know how I can get dreamweaver to parse the nested html file???
Thanks.

Gary.
This topic has been closed for replies.

5 replies

Inspiring
August 14, 2008
I'm sure not aware of one, Randy.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Randy Edmunds" <redmunds_nospam@adobe.com> wrote in message
news:g7vso4$kuk$1@forums.macromedia.com...
> Gary,
>
>> I can not get the Dreamweaver test server to execute the conditionals in
>> the 'header.html' file.
>> I am assuming that is because it is an embedded (nested) file.
>>
>> Does anyone know how I can get dreamweaver to parse the nested html
>> file???
>
> You want DW to display nested SSIs content in Design View, is that
> correct?
>
> It's possible, but you'll need to extend DW to do it. Take a look in the
> Configuration/Translators folder at the code in "Server Model SSI.htm".
>
> Or maybe someone has already written an extension to do this?
>
> Hope this helps,
> Randy
>

Inspiring
August 14, 2008
Gary,

> I can not get the Dreamweaver test server to execute the conditionals in the
> 'header.html' file.
> I am assuming that is because it is an embedded (nested) file.
>
> Does anyone know how I can get dreamweaver to parse the nested html file???

You want DW to display nested SSIs content in Design View, is that correct?

It's possible, but you'll need to extend DW to do it. Take a look in the
Configuration/Translators folder at the code in "Server Model SSI.htm".

Or maybe someone has already written an extension to do this?

Hope this helps,
Randy

justReplyAuthor
Participant
August 14, 2008
>>> You want DW to display nested SSIs content in Design View, is that correct?
Randy, that's exactly what I want!
I just do not want to spend time writing an API to do it....

Hummmmm....
Inspiring
August 13, 2008
Sorry - don't have any further suggestions....

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"justReply" <webforumsuser@macromedia.com> wrote in message
news:g7vjsf$bn7$1@forums.macromedia.com...
> Nope, renamed both files and it still does not work.
>
> It seems to be parsing the 'index.shtml' but not the nested 'header.shtml'
> So, SSI is working, just not the nested SSI file?
>
> The site runs fine with a local Apache Server.
>

justReplyAuthor
Participant
August 13, 2008
Nope, renamed both files and it still does not work.

It seems to be parsing the 'index.shtml' but not the nested 'header.shtml' So, SSI is working, just not the nested SSI file?

The site runs fine with a local Apache Server.
Inspiring
August 13, 2008
Name it with an shtml extension?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"justReply" <webforumsuser@macromedia.com> wrote in message
news:g7vcd8$3rt$1@forums.macromedia.com...
>I use conditional Server Side Includes (SSIs) in a number of my developed
> sites.
> For example in the 'index.html' file I use;
>
> <!--#include virtual="header.html" -->
>
> and in the 'header.html' i use;
>
> <!--#if expr="${file} = index.html" -->
> SOME HTML HERE
> <!--#endif -->
>
> I can not get the Dreamweaver test server to execute the conditionals in
> the
> 'header.html' file.
> I am assuming that is because it is an embedded (nested) file.
>
> Does anyone know how I can get dreamweaver to parse the nested html
> file???
> Thanks.
>
> Gary.
>