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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.