Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Want to make a page template to avoid retyping for every page...
Old 04-11-2007, 11:19 PM Want to make a page template to avoid retyping for every page...
HRK
Junior Talker

Posts: 1
Name: Kush
Trades: 0
Hi, first post!

I'm working on my site at www.HotRodKush.com. For each page, the basic template is the same, especially the main logo and navigation buttons. I'd like to have a main file somewhere that each individual page can point to, to display the information instead of having to re-type everything for each page. It would also be good so that I can make changes (such as logo change, button changes, etc.) to the main file and have every page on the website reflect that change, instead of re-coding each page individually.

I feel like it might be CSS related, but I really have no idea.

Thanks in advance,
Kush
HRK is offline
Reply With Quote
View Public Profile Visit HRK's homepage!
 
 
Register now for full access!
Old 04-11-2007, 11:33 PM Re: Want to make a page template to avoid retyping for every page...
blue-dreamer's Avatar
King Spam Talker

Posts: 1,222
Location: Middle England
Trades: 0
You need to be reading up about Server Side Includes (SSI's) or php includes. You can use these to add common elements to your pages from just a few files. Typically you might have a header file that includes your logo and navigation, and a footer file for everything after the content. Edit one file to change your whole site.
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 04-12-2007, 12:57 AM Re: Want to make a page template to avoid retyping for every page...
Novice Talker

Posts: 11
Name: Jay
Trades: 0
I've put some thought into this as well, and to some extent you can do it in CSS (such as a background image, or font/color), but otherwise I think you need to either just use an iframe or a script language like PHP or ASP that can load in the HTML from a file.

Personally I just put the header and footer in an iframe, it displays fine and that way I can make a global change.
jst07 is offline
Reply With Quote
View Public Profile
 
Old 04-12-2007, 02:55 AM Re: Want to make a page template to avoid retyping for every page...
Kirtan's Avatar
Who Am I?

Posts: 376
Name: Venkat Raj
Location: Salem, South India
Trades: 3
I agree with blue dreamer. If you are not a too technical person, then Dreamweaver is best for Templates, auto update, etc.

Execuse me LadynRed for recommending Dreamweaver.
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Old 06-16-2007, 10:29 AM Re: Want to make a page template to avoid retyping for every page...
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I don't have a problem with Dreamweaver, it's a good TOOL, which *I* use, but it shouldn't be used solely in WYSIWYG mode.

Server-side includes is the way to go, iframes should be avoided.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Want to make a page template to avoid retyping for every page...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25453 seconds with 12 queries