Topic awaiting preservation: A Template, a template! My Kingdom for a template! (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: The Dark Side of the Moon |
posted 05-01-2003 08:45
Ok, here is the deal. I made a site for a client over a year ago. There are now roughly 150+ pages in the site and all of them have the same graphic layout. Now they want to change the layout of the site, which will involve doing it on 150 different pages. Needless to say I did not originally design the site for scalability and I want to plan ahead this time. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 05-01-2003 10:47
there is nothing perl can not do! Nothing!! |
Maniac (V) Inmate From: under the bed |
posted 05-01-2003 14:37
There are tons of ways to do exactly what you want, with a variety of languages. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 05-01-2003 15:05
What he said ^^^^^^^^^^^^^^^^^^^^^ |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 05-01-2003 17:27
And this is dealt with in the FAQ: |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 05-01-2003 17:43
you know what would be cooler? |
Paranoid (IV) Inmate From: California |
posted 05-01-2003 22:14
HTML::Template would be a good solution here. Check the docs that Emps linked to. Following is a very basic sample script and a real generic template set: |
Paranoid (IV) Inmate From: The Dark Side of the Moon |
posted 05-02-2003 08:46
Thanks all. I think I am gonna go with the PHP solution at http://www.gurusnetwork.com/tutorials/php/phptemplate/phptemplate.html. It looks like the easiest solution for what I need. I may experiment with the others just to get a better idea of the different functionalities of each code. |
Maniac (V) Inmate From: under the bed |
posted 05-02-2003 13:19
Well, the basic concept that I use (and I don't recall if the GN tutorial goes the same way or not) is to have the file call the template rather than the template call the file...that way when a search engine finds the content, the template is automatically dragged along with it. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 05-02-2003 16:14
The Jackal: See here for search information: code: DirectoryIndex index.php default.php index.html default.html
|
Maniac (V) Inmate From: out of a sleepy funk |
posted 05-02-2003 22:38
I've recently done a site that does just these 2 things. code: <?php include ("$DOCUMENT_ROOT/includes/header.php"); ?>
|
Paranoid (IV) Inmate From: The Dark Side of the Moon |
posted 05-03-2003 09:08
Thank you guys so much! I can honestly say that I have had a web design epiphany! The GN tutorials on PHP templates has totally altered the way I will design sites in the future and it has peaked my interest in learning more about PHP. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 05-03-2003 14:09
The Jackal: Glad to here you found them useful. Thats the beauty of those template tutorials - its always easier to learn this kind of thing by doing things you need to do and who doesn't need to make thir life easier with a little bit of code?? |