PDA

View Full Version : use conditionals inside FAQ/Help items?


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!

Lynne
08-07-2009, 02:33 PM
You can't use conditions in the faq. You can use phrases. And, there are a couple of hooks you can use in the faq.php page. So, you may be able to get creative and do some conditions based on the page.