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
Turning my layout into a template
Old 02-11-2007, 03:18 AM Turning my layout into a template
Junior Talker

Posts: 1
Location: Calgary
Trades: 0
http://www.dallasstarsforever.com

What i would like to do is make my website layout static. So that the same code is used on every content page. Is there a method other than SSI that i should go about to yield the best results?

The reasons i want to do this are multi-faceted.
a) it would allow the members of my staff to edit content without worrying about damaging the layout.
b) It would allow me to add and remove pages of content without having to change the code on every content page to reflect the navigation link change.

Any help would be much appreciated. I'd be willing to try other coding suggestions as well. (PHP, Perl...)
SupaDawg is offline
Reply With Quote
View Public Profile Visit SupaDawg's homepage!
 
 
Register now for full access!
Old 02-11-2007, 11:46 AM Re: Turning my layout into a template
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
If you use Dreamweaver, it would be relatively easy to turn your layout into a Dreamweaver template. Then you make only those areas that your staff would add to as the only editable areas on the DW template.

Your other alternative is to use a content management system.
__________________
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
 
Old 02-11-2007, 01:22 PM Re: Turning my layout into a template
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
php include tags work well. <?php include("path/file.inc"); ?>

CSS generated design would allow you to keep the same style on every page.
You could edit specific .inc files depending on what your php include tags directories are named.

You could have a news.inc section on every page and only edit one file to change the news section on all. The only limits are your imagination.


For instance.

<div id="your box">
<?php include("path/to/news.inc"); ?>
</div>

All of your content from news.inc would stay inside your divide tag.

Hope this helps?


One other thing, I find this very useful in navigation. When you include your navigation. Any time you add a page, all you need to do is edit the navigation include file to change the links on all of your pages.

Very useful if your site grows.

Last edited by Sydpix; 02-11-2007 at 01:28 PM..
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Reply     « Reply to Turning my layout into a template
 

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.33367 seconds with 12 queries