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

subcategories plugin does not take conditionals

Development and Programming

webprouk's avatar
webprouk
69 posts
17 years ago
webprouk's avatar webprouk

Hi,

I am using the subcategories plugin to display a list of subcategories with their images. But when I use and if conditional to display the category image, it does not work.

My code is:

<

pre>{exp:subcategories}</p> <p>{if category_image} {category_image} {/if}</p> <p><a href="http://{path="> <h3>{category_name} </h3></a></p> <p>{category_description}</p> <p>{/exp:subcategories}

It may be a very simple thing, but it does not work.

help please, thank you

Moderator’s note: Moved to Plugins.

       
webprouk's avatar
webprouk
69 posts
17 years ago
webprouk's avatar webprouk

This problem is still unsolved, please help :(

       
Les McKeown's avatar
Les McKeown
133 posts
17 years ago
Les McKeown's avatar Les McKeown

Hi there -

Conditionals work OK for me with this plugin.

You could try

{if "{category_image}"}

or

{if "category_image"}

Hope this helps.

       
webprouk's avatar
webprouk
69 posts
17 years ago
webprouk's avatar webprouk

Thank you Les,

The first option works, although I do not need to put ” or { with other tags…

It is solved now anyway 😊

Thanks

       

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.