Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2005, 06:01 PM
WebProWorld New Member
 

Join Date: Mar 2005
Posts: 1
Brentg RepRank 0
Default Adding Includes in dreamweaver

i want to include a header and footer to all of the pages of my site, but i don't know how to do includes in dreamweaver.
Reply With Quote
  #2 (permalink)  
Old 03-29-2005, 09:00 PM
WebProWorld Member
 

Join Date: Feb 2004
Location: New York
Posts: 75
JSeverson RepRank 0
Default

Hi,
This may vary slightly depending on what version of Dreamweaver you are using but, click Insert on the top menu, click on Script Objects and select Server Side Include.

Regards,
__________________
Jeff T. Severson
J.T.S. Design, Inc.
Reply With Quote
  #3 (permalink)  
Old 03-31-2005, 11:56 AM
WebProWorld New Member
 

Join Date: Jul 2003
Location: British Columbia, Canada
Posts: 22
Pacific RepRank 0
Default

But using SSI means that you have to use shtml as your extensions, right?
Another way to go would be using Iframes.
Reply With Quote
  #4 (permalink)  
Old 03-31-2005, 09:19 PM
danielle v2.1b's Avatar
WebProWorld Member
 

Join Date: Jan 2004
Location: In bed at home
Posts: 88
danielle v2.1b RepRank 0
Default

Using SSI would require using the .shtml extension and does slow your server if you get heavy traffic. You'll also need to code it differently on Windows or Unix. On MX go insert > script objects > server side includes

php is easier! If you get DW resource kit 2 or 3 (can't recall which but the macromedia site will tell you) you get the extension for it, otherwise the code is simple anyway:

Code:
<? php include ("NAMEOFYOURPHPPAGE.PHP"); ?>
That's quite easy to work with even if you hand code it.

Dani
__________________
If you've worked in the Adult SEO industry, please tell me... how do you get it up?
Reply With Quote
  #5 (permalink)  
Old 04-01-2005, 12:45 AM
WebProWorld Pro
 

Join Date: Aug 2004
Location: UK
Posts: 130
SteveF RepRank 0
Default

A simple include like this works



watch the paths,
__________________
SteveF
Projectors
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



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
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0