|
View previous topic
::
View next topic
|
| Author |
Message |
ramac
Joined: 15 Jan 2005
Posts: 39
|
Posted: Thu Jan 20, 2005 8:13 pm
Post subject:
|
|
|
Hmm, okay.
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. |
|
| Back to top |
|
 |
AllanGardyne
Site Admin
Joined: 02 Jul 2003
Posts: 6326
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
AssociatePrograms.com - You're here. Explore it! |
|
| Back to top |
|
 |
Charlie
Joined: 22 Aug 2003
Posts: 3305
Location: UK
|
Posted: Sat Jan 22, 2005 2:23 pm
Post subject:
|
|
|
| ramac wrote: | | 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 |
|
| Back to top |
|
 |
ramac
Joined: 15 Jan 2005
Posts: 39
|
Posted: Mon Jan 24, 2005 6:44 am
Post subject:
|
|
|
| Clears things up, thanks, guys. |
|
| Back to top |
|
 |
Superpreneurs.com
Joined: 06 Oct 2004
Posts: 146
|
Posted: Mon Jan 24, 2005 11:58 am
Post subject:
|
|
|
If you're doing a logo, menu, and bottom bit, it will probably be best to do them as separate SSI's...
-Dan _________________ DnD and Role-Playing Advice, Tips, Tricks and Tactics
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! |
|
| Back to top |
|
 |
apixelpixie
Joined: 28 Jan 2005
Posts: 29
Location: Canada
|
Posted: Fri Jan 28, 2005 10:47 pm
Post subject:
|
|
|
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... |
|
| Back to top |
|
 |
reikiman
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
- David _________________ Free tutorial and guide to building & promoting web sites.
http://web-building.7gen.com/ |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|