SunQuest
           Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 17th, 2004, 10:43 AM
keem-o-sabi keem-o-sabi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 keem-o-sabi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Dreamweaver 'include' pages

Okay, i'm still new to Dreamweaver, I'm running pages with CSS and I want to create what was called in Frontpage, an include section. Where it will update across multiple pages once of the sections of a page. How do I do that? It's been so long since I had to do that with frontpage, I have forgotten and so I can't quite figure it out on Dreamweaver.

Reply With Quote
  #2  
Old July 19th, 2004, 09:27 AM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 36 m 40 sec
Reputation Power: 92
I think you may want something which Dreamweaver calls a template.
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
  #3  
Old July 20th, 2004, 02:08 PM
Aronya Aronya is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 128 Aronya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 16 sec
Reputation Power: 5
I've used DW templates for sites before, and I really wouldn't recommend them. They can sometimes make it hard to change your code. You can accomplish the same thing by creating the basic HTML page & saving it as TEMPLATE.HTM or similar, then copy the code to any new pages.

For includes, you just need to use the include statement:

<!--#include file="header.htm"-->

Obviously, you need to use the proper file name for your purposes. Then you can just make changes to the file being included. Be sure to change your page name from .htm to .shtml.

Reply With Quote
  #4  
Old July 21st, 2004, 12:11 AM
cliffhanger9's Avatar
cliffhanger9 cliffhanger9 is offline
fortin bra?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: city of sin, state of the art
Posts: 416 cliffhanger9 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 18 h 22 m 19 sec
Reputation Power: 0
Send a message via ICQ to cliffhanger9 Send a message via AIM to cliffhanger9 Send a message via MSN to cliffhanger9 Send a message via Yahoo to cliffhanger9
Quote:
Originally Posted by Aronya
I've used DW templates for sites before, and I really wouldn't recommend them. They can sometimes make it hard to change your code. You can accomplish the same thing by creating the basic HTML page & saving it as TEMPLATE.HTM or similar, then copy the code to any new pages.

For includes, you just need to use the include statement:

<!--#include file="header.htm"-->

Obviously, you need to use the proper file name for your purposes. Then you can just make changes to the file being included. Be sure to change your page name from .htm to .shtml.


DW templates actually work pretty well if they are properly setup.
the problem with Aronya's method of copy and pasting is that you have to do it to every single file which defeats the whole point of having a template anyway.

the problem that she is talking about is likely the editable regions bit. the concept behind this is that a web developer would create the site the way they wanted it and then would set up editable regions so that those who are less experienced can make content updates to the pages without the possibility of really messing up the structure of the site. so in a sense it locks the code for the areas that you set up. then when you make the changes to the template it prompts you to replicate the change down through the files linked to that template which is where DW will automatically update your code (in the locked regions) and leave the editable regions (becasue they should be filled with different content) untouched.

also the method of including files aronya mentioned...

Code:
<!--#include file="header.htm"-->


is actually an SSI or Server Side Includes code which you server has to be set up for before you can do this...it is not as simple as jsut pasting that in there and then naming everythign to *.shtml

do a search on here or google to learn more about SSI

hope this is of some help.

good lucky and rock on!!
__________________
"I hate quotations."
-ralph waldo emerson-

Reply With Quote
  #5  
Old July 21st, 2004, 02:57 PM
jds361 jds361 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 29 jds361 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 41 m 37 sec
Reputation Power: 0
If you are just trying to include a CSS file you could try:

Code:
<style type="text/css" media="all">
@import url(/stylesheets/your_stylesheet.css);
</style>


That will make sure you can access all your CSS definitions on the page you include this line of code on.

Reply With Quote
  #6  
Old July 22nd, 2004, 01:07 AM
happyallday happyallday is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 129 happyallday User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
if you want use include, make sure what server you are using, iis or apache? sometimes you may find your include not working

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Dreamweaver 'include' pages


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway