Server side include problem in DW design mode
I am having issues with one computer out of three...Using DW
8 on Mac OS 10.4 Intel....
I have a server-side include set up to contain my navigation
(nav.shtml) inside of a DW template, and normally, the editable
regions can be worked in and the SSI area comes up blank until the
file is uploaded to the server (which is OK...).
On the third computer, however, the SSI area is actually
visible in DW, but the Editable Region containing the main content
area doesn't even show up, therefore we cannot work on web pages on
that computer. I know this must be a setting having to do with
using DW and a Mac as a web server, but I cannot find it! Anyone
have any clues?
Thanks so much!
Can you describe teh details of the problem, please?
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
==================
"Phil Cornish" <[email protected]> wrote in
message
news:g8eosb$ijq$[email protected]..
>I have this same problem on a Win XP
machine...HELP!!!!!!!!!!
Similar Messages
-
Server-Side Includes screw up my design screen in Dreamweaver
I have a .html file (which resides in my include folder) that
was generated by an external program (one the merges and filters
RSS files).
I've created an .asp page and pull the .html file in using
<!--#include file="include/RSS-Headline.html" -->
It pulls the data into the design view but not the code which
is fine. But in the desing view I can't access anything. It looks
screwy. I can't add anything else to the page. But...when I upload
the page onto the internet it works like a charm.
http://www.evergreen-implement.com/RSS-Home.asp
I am going to want to include only the headlines in a section
on my home page within a table cell. It screws that up too. What
can I do to fix this?No doubt both the include file AND the parent page contain
<html>, <head>,
and <body> tags. That's a nono for sure.
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
==================
"danilocelic AdobeCommunityExpert"
<[email protected]> wrote in
message news:g7fvli$qio$[email protected]..
> finnegansmom wrote:
>> I have a .html file (which resides in my include
folder) that was
>> generated by an external program (one the merges and
filters RSS files).
>> I've created an .asp page and pull the .html file in
using <!--#include
>> file="include/RSS-Headline.html" -->
>> It pulls the data into the design view but not the
code which is fine.
>> But in the desing view I can't access anything. It
looks screwy. I
>> can't add anything else to the page.
>
> If you double click on the content from the include,
then Dreamweaver
> should open up the include for editing.
>
>> I am going to want to include only the headlines in
a section on my home
>> page within a table cell. It screws that up too.
What can I do to fix
>> this?
>
> If you want to use the current include but only show the
headlines, then
> you'll need to come up with some CSS that hides the
non-headline portions
> of the content. Or you could create a copy of the
include and remove all
> non-headline content, then insert an include to that new
file. The second
> option will cause you to not have up to date info from
the merged RSS
> feeds. You may want to talk to the folks that created
the include fiel and
> ask for a headline only copy.
>
> --
> Danilo Celic
> |
http://blog.extensioneering.com/
> | WebAssist Extensioneer
> | Adobe Community Expert -
Displaying server-side include in DW8
Sorry if this has been asked before? I did search and
couldn't find it (this site is painfully slow and searching is
worse)
I am trying to figure out how to make DW8 show my server-side
include files in the design view. My site uses SSI for all headers
and footers, so every page has at least 2 SSI's. They show up as
the SSI mark on the page, but not the code or graphical
representation of what is in the SSI. I need to have that code
snipet show up in my design view. The only way I have been able to
figure out how to do it, is to reinsert the SSI again from the
menu, and then delete it. Doing it that way, the original ssi that
is listed on the page will display graphicly in the design view.
I do have the option in the preferences - Invisible Elements
- Server-Side includes: and the check box is checked / enabled.
If I could, while I'm here, one other question. I have DW
code rewriting turned on, and it shows me each time I open a file,
what corrections it has made. But if I save the file, and then open
it again, it shows me the exact same corrections being done again.
Is there a trick to make DW8 save the corrections it automatically
makes to the files?
many thanks in advance.> I know that there were major changes between 4 and 8.
One of which was tightening the tolerance for bad code. CS3
is very strict
about displaying proper code.
However, your fragments below look OK.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"mmdlcab" <[email protected]> wrote in
message
news:[email protected]...
>
quote:
Originally posted by:
bregent
> Do any of your included files include html, head or body
tags? If so,
> that's
> the problem. Having those creates invalid html which DW
will not
> render.
>
> Thats a great thought, but I just checked, and no, none
of those tags are
> in
> the files. I'll see if I can attach the code for the 2
files and see if
> that
> helps any. The header file does have my menu system
pasted into the text
> of
> the include file, but that has not caused problems
previously. FWIW, this
> worked fine in DW4 which is what I upgraded from. In
version 4, the
> headers
> and footers showed up fine in desgin view. I know that
there were major
> changes between 4 and 8.
>
> Header include file:
> ----------------------------
> <table border="0" align="center" width="750"
height="110">
> <tr>
> <td><a href="/index2.html"><img
src="/images/color_logo.gif"
> width="110"
> height="107" alt="MMDL Logo" border="0"
/></a></td>
> <td align="center" valign="middle"><a
href="/index2.html"><img
> src="/images/header4.gif" width="450" height="110"
border="0" alt="MMDL -
> The
> worlds largest steel tip dart league"
/></a></td>
> <td align="center" valign="middle"><a
href="testpage.html"></a><a
> href="
http://www.dmisports.com/darts_main.html"><img
> src="/images/dmilogo_small.gif" alt="DMI Sports"
width="110" height="77"
> border="0" longdesc="
http://www.dmisports.com"
/><br />
> <!-- <a href="
http://www.mmdl.org/dmi_flyer.pdf"
> target="_blank">League Board
</a></td>-->
> </a><a href="
http://www.mmdl.org/dmi_flyer.pdf">League
Board </a></td>
> </tr>
> </table>
> <!-- DHTML Menu Builder Loader Code START
--><script language="JavaScript"
> type="text/javascript">
> var navVer = navigator.appVersion;
> if(navVer.substr(0,3) >= 4)
> if((navigator.appName=="Netscape") &&
(parseInt(navigator.appVersion)==4))
> {
> document.write('<' + 'script language="JavaScript"
type="text/javascript"
> src="
http://www.mmdl.org/dmbmenu/nsmenu.js"><\/script\>');
> } else {
> document.write('<' + 'script language="JavaScript"
type="text/javascript"
> src="
http://www.mmdl.org/dmbmenu/iemenu.js"><\/script\>');
> }</script>
> <!-- DHTML Menu Builder Loader Code END
--><table border="0" width="550"
> height="110">
> -------------------------------------
> footer include file
> --------------------
> <table border="0" align="center">
> <tr>
> <td width="20" valign="top"
align="center"> </td>
> <td align="center" valign="middle" width="194">
> <div align="left"><a
href="mailto:[email protected]?subject=MMDL
> Darts.*..
> ">Comments? Email us</a></div>
> </td>
> <td align="center" valign="middle"
width="128"><a
> href="
http://www.mmdl.org/dmbmenu/textmenu.html">Text
> based menu</a></td>
> <td align="center" valign="middle"
width="223">© <SUP>SM</SUP>
> 2007
> Minute Man Dart League. All rights reserved.</td>
> </tr>
> </table>
> -----------------------
>
>
>
> -
Dreamweaver previews first Server Side Include Only (SSI)
Dreamweaver CC and 2014 preview the first Server Side Include (SSI) only, even if the Adobe extension is installed (Using the SSI extension in Dreamweaver to create page headers | Adobe Developer Connection)
How do I set Dreamweaver to preview multiple (more than one) SSI's?
Example Code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<!--#include virtual="/content.shtml" -->
<!--#include virtual="/content2.shtml" -->
</body>
</html>
The code above will preview the text in "Content.shtml" but will not display the text in "content2.shtml".
For troubleshooting purposes, I have reduced the content in each file to only single lines of basic text.
Please advise. Thanks.
Update:
Dreamweaver Live View will show all of the server side includes. However the "Design View" and "Preview in Browser" will only show the one ssi.
The following Preference settings are enabled:
-Preview using temporary file
-Show contents of included file
Update 2:
I discovered that server side includes have been removed from the Dreamweaver interface, inferred from this article: A Look at the Modernized Dreamweaver CC : Adobe Dreamweaver Team Blog. If Server Side Includes were removed, can they be added again using the Server Behavior extension?The issue is fixed in Dreamweaver 2014.1
-
Problem in Server side includes using Tomcat
Problem in Server side includes using Tomcat:
I am trying out small programs in servlet.
I get one example program for server side includes from net.
The code is:
<HTML>
<HEAD><TITLE>Times!</TITLE></HEAD>
<BODY>
<P>
The current time in London is!!! :
<SERVLET CODE="CurrentTime" codebase="../servlet">
<PARAM NAME="zone" VALUE="GMT">
</SERVLET>
</P>
</BODY>
</HTML>
I placed this test.shtml file in tomcat-home/webapps/ROOT folder and i kept the servlet in WEB-INF/classes folder.
I renamed the servlets-ssi.jar and i removed the comments for SSI in web.xml file.
When i run the servlet separately, i am getting the correct result. But if i run shtml file with the URL : http://localhost:8080/Test.shtml,
i am getting the result as:
The current time in London is!!! :
It is not invoking servlet program.
CAN ANYONE HELP ON THIS!
Thanks.Thanks...as u said I tried putting dir & found that
my file was saved as Ch1Servlet.java.txt instead for
Ch1Servlet.java......So that was a problem.Now I'm
able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
But on compiling I'm getting the following error
package java.servlet.* does not exist
package java.servlet.http.* does not exist
package java.io.* does not exist
Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation. -
Server Side Includes not displaying in DW CS3 design view
I have this code in my page (see below):
When I open the file in Dreamweaver MX 2004 in design view,
the page displays correctly. That is, I see the correct styles from
the style sheet contained in Head_Standard.html and the logo/menu
in Logo_TopMenu.html
When I open the page in DW CS3, I do not see the effects of
the style sheet and I do not see the logo/menu.
However, when I change the code for the first include from:
virtual="/ServerSide
to
virtual="
../../ServerSide
then the page renders correctly in Dreamweaver CS3.
My first reaction was: what?! And my question is: how do I
use a root reference inside the head and get it to display properly
in DW CS 3?"Go to Edit > Preferences > Invisible Elements >
Server-Side Includes (Check this box) to show contents of included
file"
I already do this.
For me:
/ServerSide... does NOT work
../../ServerSide... works
So, a relative reference works and a reference to the root
does not. I have over 20 websites with root references and I need
this to work in DW9. -
Server side includes: outdated and not supported by host?
I've been using SSI's for ages with no problem from any host. Recently I signed up with a new web hosting company, one of the more established ones in the Seattle area. They do not support SSI's and claim that using them is not safe and is not a modern approach to web design. They suggested I use a more advanced programming language to create my sites, such as ASP.NET (something I have no desire to do).
Are server side includes outdated and no longer the way to do things? I find that hard to believe.
-JesseAre server side includes outdated and no longer the way to do things? I find that hard to believe.
That language is from Microsoft who seem to think so along with Windows based hosting providers offering ASP.NET.
IIS no longer comes with SSI installed by default. It has to be configured by the hosting provider.
http://blogs.iis.net/robert_mcmurray/archive/2010/12/28/iis-notes-on-server-side-includes- ssi-syntax-kb-203064-revisited.aspx
However, classic SSIs (in the sense of including static content from one page inside another) are still one of the most powerful, safe and flexible tools for managing repetitive page elements in any web page. Not to mention easy.
ASP.NET has its own way of doing the equivalent of SSIs - and lots more beside but much of which does not interest web designers at this stage.
http://stackoverflow.com/questions/894720/asp-net-equivalent-of-server-side-includes
http://searchsoftwarequality.techtarget.com/answer/Alternatives-to-server-side-includes-fo r-ASPNET -
Server-side includes not showing in new DW CS5.5. Any suggestions?
I have used DW for years and years and have never had any problems. I just installed CS5.5 and am not seeing my php includes in the design pane. I've searched the forums but have not found a working answer.
I'm editing files I've edited in CS5 and earlier with no problem.
I've checked the server-side includes box in the configuration but no change occurs.
Does anyone have any suggestions?What testing server setup do you have? Are you using something like WAMP?
What do you see on screen which tells you the SSIs are not rendering? Any error message? -
I am trying to incorporate server-side includes for my nav.
links. I created the website using css. I am able to preview the
navigationals (with proper links when I hovered) with F12 iexlorer,
but when I upload everything and view it from IE, Mozilla, etc.
they aren't there. My left nav. is totally blank.
I am very new to web making and learned what I could from
internet sites. Here are examples of my ssi code:
My index page has a php extension (index.php) and has this
inserted for the include:
<?php include("menu.html");?>
menu.html looks like:
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="searchplans.php">Search Plans
</a></li>
<li><a href="modifydesign.php">Modify
Design</a></li>
<li><a href="designpricing.php">Design
Pricing</a></li>
<li><a href="purchaseplan.php">Purchase
Plan</a></li>
<li><a href="contactus.php">Contact
Us</a></li>
</ul>
I know that my server supports ssi, because I previously
created a very basic site (not using css) using shtm extensions and
an includes folder. When I called them they said that they support
php too, but thought it was a problem with my settings in
Dreamweaver.
If you have any advice, I would be very grateful. I am
banging my head on this one.Be sure to upload menu.html to your server.
HTH,
Randy
> <?php include("menu.html");?> -
have used all previous versions of dw. no prior problem with server-side includes. now, they are not showing up in design view. Yes, I have marked preferences to include hidden items/server side includes. any thoughts anyone?
I set up a static test site. It has no testing server defined - just a local site. In that site I have two files -
1. include-test.html
2. /_inc/test.html
Their contents are -
INCLUDE-TEST.SHTML
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<p>This is a test of SSI. The following paragraph is an HTML include -</p>
<!--#include file="_inc/test.html" -->
</body>
</html>
TEST.HTML
<p>Ut aliquip ex ea commodo consequat. Duis aute irure dolor eu fugiat nulla pariatur. Sunt in culpa ullamco laboris nisi quis nostrud exercitation.</p>
When I look at Design view for include-test.html, I can see the contents of the include file, and I can see it listed as a related file below the filename tabs:
So, I'm at a loss.... -
Cannot Preview Server Side Includes in Browser
I am working on building a new site using server side
includes for the main header graphic and menu items. For testing
purposes, I created an .html file with one <div> tag
containing a single graphic and an .shtml file with the server side
include code placed in the <head> area. (Doesn't seem to work
if I place it anywhere within the <body> tag... not sure
why). At any rate, I can see the SSI in the design view of my
document, but cannot see it whenever I go to preview the page in my
browser (Firefox 2.0.0.3). Everything works fine if I upload the
files to my Web server and view them that way, but why can't I see
the SSI when working on my local files? The Dreamweaver help files
explain that I should be able to do so, but it's just not working.
Well, I'm now at a loss and cannot figure out if I'm doing
something wrong of if this is just a bug of some kind. Can anyone
help me to solve this problem so that I can get back on track?
Much appreciated,
~Greg>I am working on building a new site using server side
includes for the main
> header graphic and menu items. For testing purposes, I
created an .html
> file
> with one <div> tag containing a single graphic and
an .shtml file with the
> server side include code placed in the <head>
area.
This is not going to work at all. You cannot place body HTML
in the <head>
region.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Myrrhlin225" <[email protected]> wrote in
message
news:f1hdmh$clh$[email protected]..
>I am working on building a new site using server side
includes for the main
> header graphic and menu items. For testing purposes, I
created an .html
> file
> with one <div> tag containing a single graphic and
an .shtml file with the
> server side include code placed in the <head>
area. (Doesn't seem to work
> if I
> place it anywhere within the <body> tag... not
sure why). At any rate, I
> can
> see the SSI in the design view of my document, but
cannot see it whenever
> I go
> to preview the page in my browser (Firefox 2.0.0.3).
Everything works
> fine if
> I upload the files to my Web server and view them that
way, but why can't
> I
> see the SSI when working on my local files? The
Dreamweaver help files
> explain
> that I should be able to do so, but it's just not
working. Well, I'm now
> at a
> loss and cannot figure out if I'm doing something wrong
of if this is just
> a
> bug of some kind. Can anyone help me to solve this
problem so that I can
> get
> back on track?
>
> Much appreciated,
> ~Greg
>
> -
Are nested server side includes supported in DW?
Using DW 5.5 on Win 7, Apache 2.2 setup. Does DW Design view support nested server-side includes? I have to work on an old legacy site with nested ssi's that I haven't worked on for quite awhile, and I noted that while working on a page the left side column was not displaying in Display mode, so where the left column should be is just an empty blank div.
I could swear that DW used to display the nested ssi's, but looking at it now, it certainly isn't.
The left side column is just a div that is ssi included in the bodies of the pages ( nothing special ). It ssi includes various pieces such as news, announcements, etc. Everything displays fine on the website, but in the Design view the nested SSI's don't display.
Thanks,
DougKen, yes it's an include(s) inside an include. In this case the leftcolumn.html is server-side included in all the pages on the site. Inside the leftcolumn.html are four server-side includes for announcements, news, calendar, and next meeting info. Each of those are separate .html files that are constantly edited. It makes things nice and neat and I can give permission to other people to edit the individual files without screwing up the leftcolumn.html or the whole page. So leftcolumn.html is just a div with a width/margins/background color class and the four server-side includes. Of course you have to tell IIS or Apache you want to allow .html files to use ssi's, but that is simple enough and I think nicer than using .shtml's. YMMV.
What I thought I remembered was that the left column was fully displayed in the Split or Design modes, but I guess I was wrong. All I see is an empty leftcoumn div that has the proper width and background color. I work almost exclusively in DW code view or sometimes Split View, or use another editor like Brackets or CFBuilder, and just switch to a browser to view the pages.
Doug -
Server-Side Include Issue - Please Help
I am having trouble using server-side includes in
Dreamweaver. When I use the SSI to insert the header file, the
header document shows up on the page in design view, but I cannot
click anything. The cursor turns into a "no sign" no matter where
it is on the page. I cannot see anything but the header document,
and I cannot click outside of it or anywhere else in design view.
When I test the whole document in a web browser it actually seems
to work just fine. I see the header and the other text on the page
(unlike in dreamweaver, I cannot see anything but the header). Also
in Dreamweaver code view, the php tags and the included filename
are in red. This is the code for the test document:On Wed, 7 Mar 2007 04:02:29 +0000 (UTC), "AngryCloud"
<[email protected]> wrote:
> <?php include("header.php"); ?>
What does the code look like in header.php? Does it have
<html>, <head>
and <body> tags? It should not.
Gary -
Spry accordion widget - SSI (server side include) as content in the panel
After having inserted the following command <!--# include file = "content2.asp" -> in the accordion Panel Content I get an error in Dreamweaver - every time I open the file. See the error in the attached picture.
Once all files are uploaded to the server it works apparently without problems or script errors.
Is there anyone who can help me to use SSI "server side include" as content in accordion panels?Thanks for your reply.
The fault lay in the SSI file. This file contained these tag:
</ html>
And of course the tag </ html> generate an error if the tag is inserted in the content of the accordion panel via ssi file. -
I have a template (dwt) for my site with editable regions for
menus. I want to use Server Side Includes for the menu, as not all
the pages will have the same menu.
I have designed the site template (and pages) with css and
divs. The area for the SSI is a div of size 145x335. The menu which
I want to put inside this div will be a div based menu. I havent
had any luck displaying the Div from the SSI yet. I have been
looking on Google for help, but not much luck. I can get the Div to
appear but the formatting doesnt show up.
Im putting the SSI code in where I want it on the page, but
im not sure exactly which code to get rid of in the shtml file. I
know I need to remove body, head parts etc
My site template uses CSS stored on the document, not an
external css file.
Any ideas?> Im sure Ive not got it right yet!! My head wont work
lately!
Yes. It's not working well here, either.
Create your template with the editable region. In it, have
links to a) the
general stylesheet for all the pages, and b) the general
stylesheet for all
of the includes (these don't really need to be separate
files). Spawn a
child page, drop in the desired include, and save that page
as
whocares.shtml.
That's it....
The incude files themselves can be names anything you want -
I like the
'monkeybutt' extension, e.g.,
yourinclude.monkeybutt
The include files can make reference to CSS selectors, but
cannot have
embedded CSS rules, or links to external CSS files.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"~Billy~" <[email protected]> wrote in
message
news:eq234v$eq6$[email protected]..
> Ive made myself confused now! I need it spelling out to
me!
>
> Ok, a template file (dwt) with its css as an external
style sheet.
>
> Rest of the sites pages made from the template file.
>
> Next, the template has one editable region for a choce
of 2 div based
> menus to
> be placed into. Place either of these div menus into the
template editable
> region by creating two seperate SHTML files - one for
each menu with the
> body/head removed(and with internal or external css?)
>
> Next put the SSI code into the body of the template
where I want the SSI
> to
> appear.
>
> Im sure Ive not got it right yet!! My head wont work
lately!
>
Maybe you are looking for
-
Mini Displayport to HDMI Adapter - Sound?
I have hooked up my mini by the Mini Displayport to HDMI adapter to my Philips FlatTV. Sound is only played by the internal mini speaker, not from TV. According Apple Support the sound should be working on the TV when using the adapter. They reckon m
-
Agent Up and Running, uploading, but host not discovered
We recently rebooted one node in a two node RAC. When it came up we were having problems getting information in Enterprise manager. The agent comes up, uploads successfully and everything seem fine, but no updates in EM. We removed the host and all a
-
Define Actions for Document Output - Activate / link std. Interactive Forms
Hello, The transactions 'Actions for Document Output' help tells me the following: If the processing type External Communication is used for document output using SAP Interactive Forms, the following configuration needs to be done: SRM Document (Acti
-
Significant Pixelation in SD DVD from HD source
I just completed a project in FCP where I edited source from 3 different HD cameras. I imported the source in Apple ProRes, and then downconverted to SD using Compressor. The resulting DVD quality is absolutely terrible - much worse than if I had sim
-
Final Cut takes about 20 minutes to start
Hello guys, After installing the 10.6.6 update all Final Cut programs (Final Cut Pro, Compressor, Cinema Tools) and all Logic Programs (Logic Pro, Mainstage, Soundtrack Pro) need about 20 minutes to start. After starting the programs they show up as