We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

fluid conditional problem

How Do I?

stefanos's avatar
stefanos
57 posts
6 years ago
stefanos's avatar stefanos

Hi,

I don’t understand what is the problem using conditional inside fluid tags.

{explain_sub_fluid:count} display the right fluid count: 1,2.. but the conditional {if {explain_sub_fluid:count == 1} } test {/if}, doesn’t works.

I tried too:

           {if explain_sub_fluid:count == 1 } test {/if}
         {if {explain_sub_fluid:count} == 1} test{/if}

No results.

those line commands:

           {if {explain_sub_fluid:count} == 0} test {/if}

display: test…………. but count == 1, count == 2. There are not igual to zero……

Why {explain_sub_fluid:count} works well but the related conditional ( {if {explain_sub_fluid:count == 1} } ) is not processed ? {if {explain_sub_fluid:count} == 0} test {/if} is processed ??

       
stefanos's avatar
stefanos
57 posts
6 years ago
stefanos's avatar stefanos

This fluid tags embedded in Stash template code give me this problem, working fine in a legitimate EE template .

       
stefanos's avatar
stefanos
57 posts
6 years ago
stefanos's avatar stefanos

Resolved with: parse_conditionals=”no”

{stash:embed name="explain:main3" process="start" parse_conditionals="no"}
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.