Template.php instead of template.html Template.php instead of template.html
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Template.php instead of template.html

Started by huwb, June 04, 2005, 07:39:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

huwb

For the bulk of my site I use PHP includes, so basically if I change something in the menu I only change one page, sitemenu.php instead of the whole site.

Unfortunately though, as the template page is .html it will not allow php includes. can someone help me modify the code so that I can use my includes

Tranz


donnoman

Search the FAQ and boards for "custom_header" and "custom_footer".

The proper way to do what you describe is to put {TOKENS} where you want the includes to happen in your template.html and you use theme.php to replace the {TOKENS} with your included content in the appropriate sections as described by the FAQ and subsequent articles on the board.