Copy link to clipboard
Copied
Ok having been forced to subscription license, have been upgraded (didn't want to) to Dreamweaver 2021. It used to be that under Insert I had an option to Insert a Server Side Include Has this been moved some place else, deleted or what . I amring dreaam weaver on MacOS 12.6.3
SSIs were removed from the Insert Menu in 2017 when Dreamweaver's UI was rebuilt and the deprecated Server-Behavior panels got axed.
As a workaround, I created custom Code Snippets for the SSIs I most frequntly use.
PHP: <?php require_once('path/filename.html'); ?>
SHTML: <!--#include virtual="../path/filename.html" -->
Once the generic Code Snippet is inserted, you can browse for the actual include file from your Properties Panel.
Hope that helps.
This is not completely accurate, at least as it pertains to PHP or ASP.
The options were moved to another location in the menu, under Insert > PHP > Include or Insert > ASP > Include, but only while working with a file that uses the correct extension. Like many of DW's menu functions over the last few major version releases, it's not an option when working withinin the "wrong" file type, like .css or .html.
Copy link to clipboard
Copied
SSIs were removed from the Insert Menu in 2017 when Dreamweaver's UI was rebuilt and the deprecated Server-Behavior panels got axed.
As a workaround, I created custom Code Snippets for the SSIs I most frequntly use.
PHP: <?php require_once('path/filename.html'); ?>
SHTML: <!--#include virtual="../path/filename.html" -->
Once the generic Code Snippet is inserted, you can browse for the actual include file from your Properties Panel.
Hope that helps.
Copy link to clipboard
Copied
This is not completely accurate, at least as it pertains to PHP or ASP.
The options were moved to another location in the menu, under Insert > PHP > Include or Insert > ASP > Include, but only while working with a file that uses the correct extension. Like many of DW's menu functions over the last few major version releases, it's not an option when working withinin the "wrong" file type, like .css or .html.
Copy link to clipboard
Copied
Thanks....PHP is working HTML is not. kind of back to hand coding
Copy link to clipboard
Copied
More on using the Snippets Panel.
https://helpx.adobe.com/dreamweaver/using/reuse-code-with-snippets.html
Copy link to clipboard
Copied
thanks. is ther any way I can restore and oldr vwersion of dreamweaver. New is always better for an old fart.. My site is 15 years old and I dont have enough time left in life to redesign. Maybe its time for me and my littoe community to call it quits.
Copy link to clipboard
Copied
Too many things have changed since CS6 came out 11+ years ago -- web standards, computers, browsers, web devices, etc...
Old versions of Dreamweaver are not supported by Creative Cloud. Only the last two versions are available from your CC Desktop App.
Copy link to clipboard
Copied
thanks for the info. I iwll try to see if i can get my arms around your snippets if not I will go unhappily into the sunset. After all most of my computers,like me, are at the end of the effective life and I simply dont have the resources to replace.. heck my site doens have a single shmtl page
\
Copy link to clipboard
Copied
heck my site [doesn't] have a single shmtl page
By @captcurrent
============
Use whichever include method is supported by the type of files you work with.
Copy link to clipboard
Copied
thank you. I understand. I have all .php and .html. and until recentlly the html worked fine (for over 10 years) now it doesn't.
Copy link to clipboard
Copied
I don't know what "HTML doesn't work" means.
If you still need help, please post a link to your problem page online.
Copy link to clipboard
Copied
what I meant was that tht my html content files processed fine.. In trying to resolve my SSI issues I have uncovered a lot of errors shown exposed by the validator. I have my path cut out for me.. Parts of ths code is over 10 years old
Copy link to clipboard
Copied
Include files are not whole documents; just bits of relevant code for an element. Problems ensue when the code in an include file contains more code than it should.
Copy link to clipboard
Copied
I can understand that. I did domething to break something lin the last 5 days. Before that, despite the errors the validator is reporting my site worked as expected. I have it narrowed down to css which can also entail a messed up path. Maybe i can get some help from the extenion author
Copy link to clipboard
Copied
I don't know which extension you're using. But if you want us to have a look, post the URL to your page.
Copy link to clipboard
Copied
Thanks. I sort of have it working again. I am usin Adaptive Menu Magic by project seven. As you pomtied out m issue apears to be with some paths and links to css. Very frustrating
Copy link to clipboard
Copied
Project 7 used to have an extension which I think was called DW Tools, it restored SSI functionality & Design Time Style Sheets in Dreamweaver. I can't see it on their site, so whether it would work with the latest version of Dreamweaver I don't know. As an existing customer, why don't you reach out to them and ask?
Copy link to clipboard
Copied
For what it's worth, this $35 DW Tool alleges to restore Design Time Stylesheets and Server-Side Includes.
https://www.projectseven.com/products/tools/DW-tools/DW-tools-1/index.htm
[DISCLAIMER: It was created for a 2015 version of DW. I've never tested it with current versions.]
Copy link to clipboard
Copied
what I meant was that tht my html content files processed fine.. In trying to resolve my SSI issues I have uncovered a lot of errors shown exposed by the validator. I have my path cut out for me.. Parts of ths code is over 10 years old
By @captcurrent
This sounds like you're using php code inside html files?
If that's the case, by default servers won't process .php within a file with an .html extension.
A recent update to the server might have turned that functionality off.
Copy link to clipboard
Copied
Not at all My Index and infio pages are all html. My photo gallaries are all PHP. Throught out my isues my gallaries worked find.. I think my issues were caused when i as redoing soem of teh indexs and the version of DE I hadnt used before thrw me off with the SSI. Once I understood what nancy was telling me and re-dicovering the need to make those pagee excutable it all worked out.
Copy link to clipboard
Copied
Is this a really small site? Have you thought about using a CMS?
Copy link to clipboard
Copied
had to define what a small site is..
Copy link to clipboard
Copied
A small site where you would not be using a CMS or Headelss CMS would be 1-5 pages.
Headless CMS:
Basiclaly a means to use rich content editing and content building in a system. API is provided for you to use what ever coding language you want to fetch the content and present it.
A Full CMS the site is built into it. Depending on the CMS you do various things - often into the language setup for that CMS.
I mention it because like you, many people using DW and having similar issues would all go away with some form of CMS in place.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now