Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Template.php instead of template.html  (Read 2299 times)

0 Members and 1 Guest are viewing this topic.

huwb

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Template.php instead of template.html
« 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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Template.php instead of template.html
« Reply #1 on: June 04, 2005, 07:52:41 pm »

Please note the second bullet here: http://coppermine.sourceforge.net/faq.php#customHeader
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Template.php instead of template.html
« Reply #2 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.