forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: huwb on June 04, 2005, 07:39:16 pm

Title: Template.php instead of template.html
Post by: huwb on June 04, 2005, 07:39:16 pm
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
Title: Re: Template.php instead of template.html
Post by: Tranz on June 04, 2005, 07:52:41 pm
Please note the second bullet here: http://coppermine.sourceforge.net/faq.php#customHeader
Title: Re: Template.php instead of template.html
Post by: donnoman on June 04, 2005, 07:55:16 pm
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.