Say I want to use one template for all my pages, have the template in one file, and the actual content in another. Template meaning including things like links to other parts of the site, "back" links, etc. Is this something I can do with XML, or do I need PHP or whatever for that?
.
From:
no subject
Xml, no. Server-side includes (ssi) are designed for exactly the sort of thing that you're talking about, but you could also do it with php, yep.
From:
Re:
From:
no subject
As for paying, you'd need to check whether your hosting plan already provides php. If they don't, however, it's really not worth paying the extra just to do what you want to do. It's like buying an entire chocolate cake because you want to eat the cherry on top. :)
A better option, if you can't get php for free, is to check if you have ssi. For what you want to do, the method will be virtually identical to what you'd do with php, and pretty much all hosts support ssi these days.
From:
no subject
http://zalary.com/substance/phptutorial/ - this is a good tutorial for doing what you want to do. I've used it myself many times, is marvelous! :g: (working example: digitalcandy.net)
From:
Re:
Thanks for the tutorial link.
From:
Re:
From:
no subject
From:
no subject
http://www.independentsoul.net/test/template.php
but when you follow the link in netscape, it doesn't use the template for the second page as well. (It does in IE.)
Also, how can I make it so that the index page automatically loads, with the template? (create index.php, perhaps?)
From:
no subject
As for the second question. Yeap. Just rename template.php to index.php :g:
From:
Re:
(Now if you'd happen to know a good freewhare program to search and replace text in multiple files, I'd be even more grateful. ^_~)
From:
no subject
As for a freeware program. :puts on pimping hat: You ask and I provide. heh. - www.notetab.com - the lite version is the freeware one and I *heart* it. I used it on my fic for changing css and all.
From:
no subject
From:
no subject
But, glad to have helped.
From:
Re: