ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE Conditionals Not Working in PHP Conditionals

April 28, 2011 6:13pm

Subscribe [3]
  • #1 / Apr 28, 2011 6:13pm

    Nora

    41 posts

    I’m not sure if this is a bug, but whenever I use basic conditionals like {if logged_in}{/if} within normal PHP if/else conditionals, the content between the ExpressionEngine conditional tags gets parsed even if the user isn’t logged in. I’ve seen the same happen with other ExpressionEngine conditionals. Am I missing something or should I report this as a bug?

  • #2 / Apr 29, 2011 5:43am

    John Henry Donovan

    12339 posts

    Nora,

    What version and build of EE are you using?

    Can you show us specific examples please?

    Are you parsing your template on input or output.

    It most likely sounds like a parsing order issue. Once we see your examples we can offer advice based on that. It does not sound like a bug.

    Review the template’s parse order in the meantime

  • #3 / Apr 29, 2011 5:16pm

    Nora

    41 posts

    Thanks for the help. 😊
    Looks like it had to do with cache=“yes” in the entries tag. Removing it fixed it.

  • #4 / May 02, 2011 4:51pm

    Sue Crocker

    26054 posts

    Yay! Glad John was able to help. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases