Johnny
09-28-2004, 07:23 PM
What im trying to do is call certain templates to be displayed in certain forums without using conditionals such as.
<if condition="$show and (in_array($forumid, array (X,Y)))"> $navbar </if>
but have something more like <if condition="$show[blah_template]"> $navbar </if>
(using $navbar template as an example)
im going to have too many forums and once i add more fourms just going back and adding a number to all the templates has thas the array conditionals that i dont want certain things to show in certain forums is just too much work.
so is their a way to do this as an option in admincp when editing or adding a new forum that gives an option if you want only enable/disable certain templates from showing in a particular fourm but not all
<if condition="$show and (in_array($forumid, array (X,Y)))"> $navbar </if>
but have something more like <if condition="$show[blah_template]"> $navbar </if>
(using $navbar template as an example)
im going to have too many forums and once i add more fourms just going back and adding a number to all the templates has thas the array conditionals that i dont want certain things to show in certain forums is just too much work.
so is their a way to do this as an option in admincp when editing or adding a new forum that gives an option if you want only enable/disable certain templates from showing in a particular fourm but not all