Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Switch to LIVE view (Ctrl+Shift+F11).
LIVE view displays PHP SSIs just fine for me.
Copy link to clipboard
Copied
@Nancy OShea , the OP is talking about Apache SSI, not PHP SSI.
Copy link to clipboard
Copied
I wonder if the Apache server is running & properly configured.
Apache > httpd.conf
https://httpd.apache.org/docs/current/howto/ssi.html
Copy link to clipboard
Copied
Yes, the apache server is correctly configured. All my apache servers are properly configured. The public server as well as the ones on my development computers. That's the only way I can see the results of the SSI's, as I mentioned in my original post. The Dreamweaver live screens are completely useless for any files that use SSI's..
What's even peachier is that there's some fossilized code buried deep within Dreamweaver that actually recognizes when you use the Apache include file syntax. This causes Dreamweaver to create empty files which have the same name as your created files. When you close the primary file, Dreamweaver then offers to 'save' the include files it creates, but of course, that would be a disaster, since it would overwrite your existing content with an empty file.
As I said, just peachy.
I've been reading more here and it seems that Dreamweaver is being discontinued by Adobe. That's a pity. Perhaps Adobe will release the code when they stop selling it, so that those of us that like it can fix some of these problems.
Copy link to clipboard
Copied
Thiss 14 year old video shows that it is possible with Dreameweaver using the correct configuration:
Copy link to clipboard
Copied
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.