1

Topic: Conditional include of template in include/template/main.tpl

In fact I would like to include the <pun_announcement> only on the homepage of my forum, with the forum list. Well in fact I'd like to do something like :

if page == index.php
  include <pun_announcement>

in the include/template/main.tpl

Anyone got a clue on how I could do that?

2

Re: Conditional include of template in include/template/main.tpl

I added the Html directly in index.php... quite ugly but works.
Bye!

Re: Conditional include of template in include/template/main.tpl

An alternative would be to do a <pun_include "blaha.php"> in the template and then check in blaha.php if the current script is index.php and if so, output some markup.

"Programming is like sex: one mistake and you have to support it for the rest of your life."