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

Channel Entries and Conditionals (For Serious)

Developer Preview

mithra62's avatar
mithra62
63 posts
12 years ago
mithra62's avatar mithra62

I can’t get conditionals to work within a channel entries tag against channel fields.

For example, the below doesn’t work even if both portfolio_url and portfolio_challenges aren’t empty:

{exp:channel:entries channel="portfolio" limit="1" require_entry="yes"} 

 {if portfolio_url == ''}
  Offline
 {if:else}
  
  <a href="{portfolio_url}" title="{title}" target="_blank">
  {portfolio_url}
  </a>
 {/if}

 {if portfolio_challenges != ''}
 <p><strong>Challenges:</strong><br />
  {portfolio_challenges}
 </p>
 {/if}

{/exp:channel:entries}

Am I missing something?

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
12 years ago
Kevin Cupp's avatar Kevin Cupp

Thanks, Eric. Yes we noted conditionals may not be working in the dev preview email, and Pascal got it fixed today. If we do another dev preview, it should contain the fix. Sorry for the trouble!

       

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.