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
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!
 
When You Register, These Ads Go Away!
     
Old 04-11-2007, 11:33 PM Re: Want to make a page template to avoid retyping for every page...
blue-dreamer's Avatar
Webmaster Talker

Posts: 696
Location: Middle England
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
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: 377
Name: Venkat Raj
Location: Salem, South India
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
Super Moderator

Posts: 6,406
Location: Tennessee
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 !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
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

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

vB 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.14192 seconds with 13 queries