|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
I think you may want something which Dreamweaver calls a template.
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
Quote:
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- |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
if you want use include, make sure what server you are using, iis or apache? sometimes you may find your include not working
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Dreamweaver 'include' pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|