HighDots Forums  

Server Side Include files not working

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Server Side Include files not working in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JesseLY
 
Posts: n/a

Default Server Side Include files not working - 10-29-2005 , 08:29 PM






Using DW8 trial version, Windows XP. Intending to buy if I can get this
resolved. When I insert an include page, instead of the included page appearing
as it should, the included content is prefaced by this line:

"Untitled Document </head>".

The closing head tag is highlighted in yellow. Directly after that tag is my
included content, but not the rest of the main page. It's all just gone.

When I go to code view and remove the include code it gives an error message
about the page being tied to a template, which it's not.

What shows in the browswer, locally as well as on the server, is the original
page, without my included info. I've tried using .shtml, etc. , but nothing
changes this.

I see others have had similar problems, but don't see if there was a
resolution. Any ideas out there?

Thanks...

-Jesse




Reply With Quote
  #2  
Old   
radio guy
 
Posts: n/a

Default Re: Server Side Include files not working - 10-29-2005 , 09:55 PM






Can you provide links for the page and include page?

Reply With Quote
  #3  
Old   
JesseLY
 
Posts: n/a

Default Re: Server Side Include files not working - 10-29-2005 , 10:25 PM



Thanks, Radio Guy.

I've tried this on a number of different site mockups and it happens
repeatedly. Here are links to two simple pages:

Main page: http://www.jesseyoung.com/testing/main.html
Include page: http://www.jesseyoung.com/testing/include.html

Three table cells. The include page is supposed to show in the middle one. In
the browser it doesn't show anything except an empty cell. In Dreamweaver
design view it shows the odd "Untitled document" statement.

Appreciate any feedback.

-Jesse




Reply With Quote
  #4  
Old   
John Waller
 
Posts: n/a

Default Re: Server Side Include files not working - 10-30-2005 , 03:19 AM



Quote:
Main page: http://www.jesseyoung.com/testing/main.html
Include page: http://www.jesseyoung.com/testing/include.html
1) your main page should have the extension .shtml or .shtm (unless you are
running a dynamic page - .php, .asp etc) so the server knows to parse the
include directive correctly (i.e it knows to to go find the include snippet
somewhere else on the server and insert it into the main page).

2) your include file should contain nothing other than the code fragment
which is to be inserted into the main page.

If you look at the source code of your include page, it has a complete HTML
structure include <head> and <body> tags which it cannot contain. It appears
that you've created a HTML page in Dreamweaver, typed your content and saved
it as "include.html".
You need to open "include.html", go into Code View and delete everything
except the words "These words are the include content ".

For a useful overview of SSI:
http://www.macromedia.com/go/14380

http://www.projectseven.com/products/menusystems/pmm/user_guide/site_wide/includes/overview.htm

--
Regards

John Waller




Reply With Quote
  #5  
Old   
Twocans
 
Posts: n/a

Default Re: Server Side Include files not working - 10-30-2005 , 03:41 AM



hi yea,
the page hosting the ssi will in your case need to be called main.shtml,
the include itself can be called anything i think. me if using shtml pages
then I usuly called the incudes whatever.txt

regards

Kenny




"JesseLY" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks, Radio Guy.

I've tried this on a number of different site mockups and it happens
repeatedly. Here are links to two simple pages:

Main page: http://www.jesseyoung.com/testing/main.html
Include page: http://www.jesseyoung.com/testing/include.html

Three table cells. The include page is supposed to show in the middle one.
In
the browser it doesn't show anything except an empty cell. In Dreamweaver
design view it shows the odd "Untitled document" statement.

Appreciate any feedback.

-Jesse






Reply With Quote
  #6  
Old   
JesseLY
 
Posts: n/a

Default Re: Server Side Include files not working - 10-30-2005 , 11:35 AM



Thanks, everyone. I have it working now. Since I've been using Go Live and
"another web program" for years, I was accustomed to the way those programs
handled SSI. With those programs you can, in fact, simply include another full
html page into another.

Thanks, again. (and let's not start any flaming about those other progams. :-)

-Jesse


Reply With Quote
  #7  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Server Side Include files not working - 10-30-2005 , 11:43 AM



Glad you got it sorted.

Quote:
Thanks, again. (and let's not start any flaming about those other progams.
:-)
Other than the fact that their 'smoke and mirrors' prevented you from
understanding the reality of using Server-side includes, you mean? 8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================


"JesseLY" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks, everyone. I have it working now. Since I've been using Go Live and
"another web program" for years, I was accustomed to the way those
programs
handled SSI. With those programs you can, in fact, simply include another
full
html page into another.

Thanks, again. (and let's not start any flaming about those other progams.
:-)

-Jesse




Reply With Quote
  #8  
Old   
JesseLY
 
Posts: n/a

Default Re: Server Side Include files not working - 10-30-2005 , 12:30 PM



An additional aspect to this situation, one that I'm not too concerned about,
is that the include content doesn't show when previewing in browser locally,
only on the server (which makes sense). But the Dreamweaver help file
specifically says:

"With Dreamweaver you can preview documents just as they?ll appear after
they?re on the server, both in the Design view and when you preview in a
browser."


Reply With Quote
  #9  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Server Side Include files not working - 10-30-2005 , 05:57 PM



Have you enabled includes in your preferences?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================


"JesseLY" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
An additional aspect to this situation, one that I'm not too concerned
about,
is that the include content doesn't show when previewing in browser
locally,
only on the server (which makes sense). But the Dreamweaver help file
specifically says:

"With Dreamweaver you can preview documents just as they?ll appear after
they?re on the server, both in the Design view and when you preview in a
browser."




Reply With Quote
  #10  
Old   
JesseLY
 
Posts: n/a

Default Re: Server Side Include files not working - 10-30-2005 , 07:53 PM



Yup, "show contents of included file" is checked. My first issue was resolved. Are you saying that I *should* be able to preview the includes in the browser locally?

-Jesse

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.