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

Server Side Include does not appear to be an choice in Dreamweaver

Explorer ,
Feb 24, 2023 Feb 24, 2023

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

 

 

TOPICS
Code , Server side applications
3.0K
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

correct answers 2 Correct answers

Community Expert , Feb 24, 2023 Feb 24, 2023

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.

 

 

Translate
Community Expert , Feb 27, 2023 Feb 27, 2023

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.

JonFritzII_0-1677507276192.png

JonFritzII_1-1677507759176.png

 

 

Translate
Community Expert ,
Feb 24, 2023 Feb 24, 2023

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.

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Community Expert ,
Feb 27, 2023 Feb 27, 2023

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.

JonFritzII_0-1677507276192.png

JonFritzII_1-1677507759176.png

 

 

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
Explorer ,
Feb 27, 2023 Feb 27, 2023

Thanks....PHP is working HTML is not.  kind of back to hand coding

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
Community Expert ,
Feb 24, 2023 Feb 24, 2023

More on using the Snippets Panel.

https://helpx.adobe.com/dreamweaver/using/reuse-code-with-snippets.html

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Explorer ,
Feb 24, 2023 Feb 24, 2023

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.   

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
Community Expert ,
Feb 24, 2023 Feb 24, 2023

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. 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Explorer ,
Feb 24, 2023 Feb 24, 2023

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
\

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
Community Expert ,
Feb 25, 2023 Feb 25, 2023
quote

heck my site [doesn't] have a single shmtl page

By @captcurrent

============

  • PHP includes are used in PHP files. 
  • Virtual includes are used in ASP or SHTML files. 
  • ColdFusion includes are used in CF files, etc...

Use whichever include method is supported by the type of files you work with.

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Explorer ,
Feb 25, 2023 Feb 25, 2023

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.      

 

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
Community Expert ,
Feb 25, 2023 Feb 25, 2023

I don't know what "HTML doesn't work" means.

  • HTML is static.  It doesn't DO anything except provide structure for content.
  • HTML failures are usually caused by code errors.
    HTML Validation Service: https://validator.w3.org/

 

If you still need help, please post a link to your problem page online.

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Explorer ,
Feb 25, 2023 Feb 25, 2023

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

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
Community Expert ,
Feb 25, 2023 Feb 25, 2023

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.

 

 

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Explorer ,
Feb 25, 2023 Feb 25, 2023

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 

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
Community Expert ,
Feb 25, 2023 Feb 25, 2023

I don't know which extension you're using.  But if you want us to have a look, post the URL to your page.

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Explorer ,
Feb 26, 2023 Feb 26, 2023

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 

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
Community Expert ,
Feb 27, 2023 Feb 27, 2023

 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?

Paul-M - Community Expert
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
Community Expert ,
Feb 27, 2023 Feb 27, 2023

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.]

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Community Expert ,
Feb 28, 2023 Feb 28, 2023
quote

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.

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
Explorer ,
Feb 28, 2023 Feb 28, 2023

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.  

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 ,
Feb 28, 2023 Feb 28, 2023

Is this a really small site? Have you thought about using a CMS?

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
Explorer ,
Mar 01, 2023 Mar 01, 2023

had to define what a small site is..

 

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 ,
Mar 01, 2023 Mar 01, 2023
LATEST

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.

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