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

pipe separated category groups

How Do I?

Eastwood Design's avatar
Eastwood Design
605 posts
6 years ago
Eastwood Design's avatar Eastwood Design

in EE2 I am trying to display a list of categories in a certain group then a pipe | then a list of categories in the next group then a PIPE | with no luck. I am getting pipes even when no category group exists. How can I only show the PIPE if the group is being used?

{exp:channel:entries channel="portal" limit="1" paginate="bottom" dynamic_parameters="category" dynamic="yes"}

{title}

{categories show_group="1" }{category_name}, {/categories} {categories show_group="2" }{if category_count >= 1} | {/if} {category_name}, {/categories} {categories show_group="4" }{if category_count >= 1} | {/if} {category_name}, {/categories} {categories show_group="5" }{if category_count >= 1} | {/if} {category_name}, {/categories} {categories show_group="6" }{if category_count >= 1} | {/if} {category_name}, {/categories} {categories show_group="7" }{if category_count >= 1} | {/if} {category_name}, {/categories}

<hr> {/exp:channel:entries}

       

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.