Forum Moderators: open

Message Too Old, No Replies

Page Loading for Index Page

         

the7thmagus

5:26 am on Jul 10, 2006 (gmt 0)

10+ Year Member



OK, so I have an index page that I have coded with HTML and CSS. This page is what I want to use throughout my site.

The problem is that I don't want to replicate the page over and over everytime I want to create a new page.

What is the way (without using frames and iframes) to use one index page and then access and "load" different contents onto it?
What is the method called and if possible any good links for tutorial?

(I have seen ppl using it using PHP but I don't know what the method is called and therefore can't Google it)

Robin_reala

6:43 am on Jul 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's a PHP include (or more generically an SSI - serverside include). E.g.:

<?php include('my_section.php')?>

RonPK

12:22 pm on Jul 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Editors such as Dreamweaver and Frontpage support the use of templates. You could also have a look at HTML preprocessors, such as Site Warrior, HTMLPP or WML.

kiwibrit

1:32 pm on Jul 10, 2006 (gmt 0)

10+ Year Member



Although I have Dreamweaver, I think includes are the way to go. An amendment to one file can cause a change site-wide. And there is less code bloat. OTOH, if you rely on the design page for seeing an approximation of rendered page appearance, you may wish to stick with templates. I check on my computer's web server (Apache) before uploading to the host's web server.