Top Articles

Stay In Touch


Affiliate Marketing Forum

FAQ FAQ Search Search Memberlist Memberlist Usergroups Usergroups
Register Register Profile Profile Log in to check your private messages Private Messages Log in Log in

Some sort of dynamic template possible?
Goto page Previous  1, 2
Affiliate Marketing Forum Index » Do-It-Your-Selfers
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramac



Joined:
15 Jan 2005

Posts:
39


Post Posted: Thu Jan 20, 2005 8:13 pm
      Post subject:

Reply with quote

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 View user's profile Send private message
AllanGardyne
Site Admin


Joined:
02 Jul 2003

Posts:
6326

Location:
by the beach, Australia

Post Posted: Fri Jan 21, 2005 11:10 pm
      Post subject:

Reply with quote

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 View user's profile Send private message Visit poster's website
Charlie



Joined:
22 Aug 2003

Posts:
3305

Location:
UK

Post Posted: Sat Jan 22, 2005 2:23 pm
      Post subject:

Reply with quote

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 View user's profile Send private message
ramac



Joined:
15 Jan 2005

Posts:
39


Post Posted: Mon Jan 24, 2005 6:44 am
      Post subject:

Reply with quote

Clears things up, thanks, guys.
Back to top View user's profile Send private message
Superpreneurs.com



Joined:
06 Oct 2004

Posts:
146


Post Posted: Mon Jan 24, 2005 11:58 am
      Post subject:

Reply with quote

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 View user's profile Send private message Visit poster's website MSN Messenger
apixelpixie



Joined:
28 Jan 2005

Posts:
29

Location:
Canada

Post Posted: Fri Jan 28, 2005 10:47 pm
      Post subject:

Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website
reikiman



Joined:
24 Oct 2003

Posts:
78

Location:
Mountain View, CA

Post Posted: Sat Jan 29, 2005 6:06 pm
      Post subject:

Reply with quote

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 user's profile Send private message Visit poster's website
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic
Affiliate Marketing Forum Index » Do-It-Your-Selfers
Page 2 of 2 All times are GMT
Goto page Previous  1, 2

 

Jump to:  
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




Newsletter Sign-up

Sign-up Now!

How to make $1000 a month from scratch

Sign-up for our newsletter and receive our 77 page eBook "How to make $1000 a month from scratch".

Best of all it's FREE!

Your Host

Allan Gardyne

Learn from an affiliate veteran.

Your host, Allan Gardyne, has been earning a good living from affiliate programs since 1998.

Want a BETTER article writer? We will write good articles just for you.

Content Kingdom