HighDots Forums  

Includes in html files

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Includes in html files in the Macromedia Dreamweaver forum.



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

Default Includes in html files - 11-29-2004 , 01:56 AM






Hi

I have a html page (eg. aboutUs.html)

Now I want to have the header and footer sections of this page as include
files.

I have seen this before.

But can a .html page have include files or does it have to be a .asp, .php,
..cfm, .jsp etc?

I cant get it to work.

The path to the .inc file is correct and it displays in the Dreamweaver
interface but not when I view the aboutUs.html page in IE.

Heres my code (which is greyed out in DW for some reason)

<!-- Footer -->
<!--#include file="inc/footer.inc" -->
<!-- Footer End -->


Thanks
Enzo



Reply With Quote
  #2  
Old   
Mad Dog
 
Posts: n/a

Default Re: Includes in html files - 11-29-2004 , 02:41 AM






If you've set the page up to call for the includes properly, change the
extension to .shtml and, providing your site host is set up for it, it
should work.

Here's one of a zillion tutorials you can find online to help out:
http://www.vortex-webdesign.com/help/intro_ssi.htm

MD

Enzo Banzai wrote:
Quote:
Hi

I have a html page (eg. aboutUs.html)

Now I want to have the header and footer sections of this page as
include files.

I have seen this before.

But can a .html page have include files or does it have to be a .asp,
.php, .cfm, .jsp etc?

I cant get it to work.

The path to the .inc file is correct and it displays in the
Dreamweaver interface but not when I view the aboutUs.html page in IE.

Heres my code (which is greyed out in DW for some reason)

!-- Footer --
!--#include file="inc/footer.inc" --
!-- Footer End --


Thanks
Enzo



Reply With Quote
  #3  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: Includes in html files - 11-29-2004 , 03:20 AM



Enzo Banzai wrote:
Quote:
Hi

I have a html page (eg. aboutUs.html)

Now I want to have the header and footer sections of this page as include
files.

I have seen this before.

But can a .html page have include files or does it have to be a .asp, .php,
.cfm, .jsp etc?

I cant get it to work.

The path to the .inc file is correct and it displays in the Dreamweaver
interface but not when I view the aboutUs.html page in IE.

Heres my code (which is greyed out in DW for some reason)

!-- Footer --
!--#include file="inc/footer.inc" --
!-- Footer End --


Thanks
Enzo


In addition to Mad Dog's post:
Try <!--#include virtual="inc/footer.inc" -->

Also: Do you mean when viewing with IE from the remote site or locally?
If locally, do you mean when using DW's preview, or from a local server?

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)


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.