Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Conditional SSIs and Test Server

New Here ,
Aug 13, 2008 Aug 13, 2008
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.
TOPICS
Server side applications
442
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 13, 2008 Aug 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.
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 13, 2008 Aug 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 13, 2008 Aug 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.
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 13, 2008 Aug 13, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 13, 2008 Aug 13, 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....
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 19, 2008 Aug 19, 2008
LATEST
>> 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 writting an API to do it....

All of the code and API calls that you need is there, you just need to
refactor it a little bit to recursively look for nested SSIs. :)

Hint: you only want a single set of lock tags surrounding the outermost
SSIs (i.e. don't nest the lock tags).

HTH,
Randy
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 13, 2008 Aug 13, 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
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines