From reading that link, it seems you don't have to put ANY special code in the file being included, just the code in the file where it is being inserted.
Joined: 02 Jul 2003 Posts: 5839 Location: by the beach, Australia
Posted: Fri Jan 21, 2005 11:10 pm Post subject:
I have some server side includes that are plain text and some that include a bit of HTML coding. Both work for me. _________________ Allan Gardyne
... earning a good living from affiliate programs since 1998.
Learn how.
Subscribe now FREE Affiliate Program Tutorial
it seems you don't have to put ANY special code in the file being included, just the code in the file where it is being inserted.
That's right - and you can put anything the browser can understand in there: javascript too, if you like. Nothing will be run until it reaches the client browser.
One thing to watch if you are linking from the include...
Keep things simple by using absolute links that include the full pathname.
If you use relative links to other pages on your site, or scripts, remember that if the included file and the page it's included in are not in the same directory on your server, the relative paths must be from the page location (not the include).
Take a look at Will Bontrager's CGI site if you fancy some useful guidance on SSI and CGI in general.
Cheers,
Charlie. _________________ "Before I speak, I have something important to say."
- Groucho Marx
The above message is probably completely harsh and tactless; I don't have time to hold your hand if you ask for help. I give it straight. Hang in there, work hard, and you'll get there though!
I have a quick question...Are you using FrontPage to build your site?
If you are then why don't you just use the FrontPage include component? It is quick and painless...
Just place your curser into the cell or table you want the include to go in...click once...
Click Insert>Web Component
Choose Include Content from the list
Then browse to the page you want to include...
Just my nickel... _________________ Lynne Robson
http://robsondesignworks.com
Templates and custom development for all website needs.
http://1st-in-web-templates.com
Affiliate Marketing Templates :: EBook Covers :: Sales Letter Templates :: Web Development Guides :: Tutorials :: Custom Development and much much more...
Joined: 24 Oct 2003 Posts: 78 Location: Mountain View, CA
Posted: Sat Jan 29, 2005 6:06 pm Post subject:
I don't use Front Page (as I said in another thread, FP puts in lots of microsoftisms that are proprietary, and I abhor such policies) ...
In GoLive and Dreamweaver they can do exactly as you want.
GoLive: You create a "template" in the "site extra's" tab and from then you have two choices .. you can either create a page using that template, or you can modify the template ... when you modify the template, the modifications are copied to every page that uses that template.
DW: I don't remember the details, but they're amazingly similar.
In both I use sub-templates within each template page. In GoLive this is a "Component", and whenever you edit the Component file the changes are duplicated out to every page that uses the Component.
I use two template pages:
article.html - One article page per "article" I publish on the site.
index.html - An index page per topic area, the index page being to point to every article page within the topic area.
Some components I use are
adsense-vertical - holds adsense advertisements (vertical orientation)
footer - holds the bottom-of-the-page stuff
navbar - contains links to the important pages within the site
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Your host: Allan Gardyne. Earning a good living from affiliate
programs since 1998.