theksmith
08-07-2009, 07:27 AM
does anyone know if there would be an easy hack to enable template conditionals inside FAQ/Help items?
i would like to show different help text on a particular FAQ entry depending on whether the user is a guest or not... but when i put in a conditional, i get a big fat error at the top of the FAQ page basicly saying PHP doesn't know what the heck i'm trying to do.
this is what i want to use:
<if condition="$show['guest']">
blah blah blah
<else/>
blah blah blah 2
</if>
i'm hoping there's just a single function call i can add in the FAQ php page to make it process the FAQ text entry as a template?
thanks!
i would like to show different help text on a particular FAQ entry depending on whether the user is a guest or not... but when i put in a conditional, i get a big fat error at the top of the FAQ page basicly saying PHP doesn't know what the heck i'm trying to do.
this is what i want to use:
<if condition="$show['guest']">
blah blah blah
<else/>
blah blah blah 2
</if>
i'm hoping there's just a single function call i can add in the FAQ php page to make it process the FAQ text entry as a template?
thanks!