DW development Q
- Started
- Last post
- 14 Responses
- ganon
what the dreamweaver equivalent of frontpage's "include" files?..making a template...?
- stewart0
do you mean
insert >> script objects >> SSI ?
- ganon0
i dont know what i mean, im not a developer...but i will be building a site and when i got briefed, i was told to use "include" files for the footer, etc...i cant ask them because all they use is FP (*gasp)...and im not going to use that trash....
- 187LockDown0
This just means they want you to use an include file for the footer so that they do not have to change it on every page when they make changes to the site.
So lets say you have a Home.html and there is an area at the bottom where you have created a footer, lets just say it's a simple table. Copy that table and insert it only on a new html page, Remember to put no HTML code on that page, then include it wherever you want the footer to show up.
I usually use these include files when creating my navigation.
- 187LockDown0
Heres the code I use:
- stewart0
okay give it a try. i'm not really sure, but when you want to test this include documents or publish them online, you have to use a webserver that supports asp scripts...
look at this; two documents loaded in one page:
http://www.kulsdom.com/database
- stewart0
okay give it a try. i'm not really sure, but when you want to test this include documents or publish them online, you have to use a webserver that supports asp scripts...
look at this; two documents loaded in one page:
http://www.kulsdom.com/database
- stewart0
hm, double dutch.
- 187LockDown0
Damnit I think you can only use that on an asp page.
- 187LockDown0
Just name your pages with a .asp extension and make sure they are on a windows server.
- stewart0
that's what i thought.
- 187LockDown0
You thought correctly son.
If you are on linux, you can use the php file extenion, Here I have updated the textfile to show the code for php pages.
- ganon0
thank you for your help...but why does this "include" page have to be asp or php if its just something like navigation or html links?...
- n_m0
it doesn't need to be. why don't you just use javascript instead? then its gonna run on windows/linux/php/asp/front page extensions/ the fridge, everything.
all you do is take out the generic code and put it in a js file (output it using document.write). then every page that you want to include that on, you simply have a script tag that includes the code. for example:
<script language="JavaScript" src="script.js"></script&g...
bob's yer uncle
- 187LockDown0
Yes that will work also. Guess I just posted that becuase those because I rarely create .html files anymore. And never used those things in when I did use .html only.