Skip to main content
Participating Frequently
August 13, 2022
Question

Dreamweaver CC doesn't grok Apache SSI

  • August 13, 2022
  • 2 replies
  • 441 views

Unless I've missed a configuration to Dreamweaver, it doesn't seem to understand Apache 2.4. SSI.

 

The following should display "misc pam-current-link", which it does when loaded on an apache server.  Instead, it displays "pam-current-link foobar", treating the SSI commands completely as comments.

 

Here's the sample code:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<!--#set var="CURRENTNODE" value="misc" -->
<body>
<!--#echo var="CURRENTNODE" -->
<!--#if expr="(v('CURRENTNODE') = 'misc')" -->
pam-current-link
<!--#else -->
foobar
<!--#endif-->

</body>
</html>

This topic has been closed for replies.

2 replies

BenPleysier
Community Expert
Community Expert
August 13, 2022

Thiss 14 year old video shows that it is possible with Dreameweaver using the correct configuration:

https://youtu.be/wJfvIGMru0M

 

 

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
PammyDLAuthor
Participating Frequently
August 14, 2022

Thanks Ben. Unfortunately, the software has been improved to the point where it can't do that anymore. It's nice to see it worked at one time.

Nancy OShea
Community Expert
Community Expert
August 13, 2022

Dreamweaver is not a server.  It's a code editor.   Live view emulates a local Chrome browser.  Nothing more.

 

To parse content locally, you must install a local testing server.  Wamp, Xampp, Mamp, etc... and configure your local server to parse the includes you're using.

 

I typically work with PHP includes and MySQL data.  I have installed Wamp server on my local hard drive and defined it as my testing server in DW's Manage Sites panel.  See screenshots.

 

 

Hope that helps.

 

Nancy O'Shea— Product User & Community Expert
PammyDLAuthor
Participating Frequently
August 13, 2022

Hi Nancy,

 

That's quite a detailed response, I do appreciate your time. Just FYI,  I have local servers set up that I use. You do realize, I am sure, that using SSI include files without support for this from the editing program makes both the design and live features nearly useless.

 

I won't belabor that point, but instead refer you to Adobe's documentation:

 

I gather that this has been removed and that's viewed as an improvement? While I don't share that view, a note

to that effect could be included in the documentation and would have saved me some time.

 

Best,

Scott

 

Nancy OShea
Community Expert
Community Expert
August 14, 2022

Switch to LIVE view (Ctrl+Shift+F11). 

LIVE view displays PHP SSIs just fine for me.

 

 

Nancy O'Shea— Product User & Community Expert