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

How do I not show certain categories in the Photo Gallery Module?

Development and Programming

Richard Frank's avatar
Richard Frank
200 posts
17 years ago
Richard Frank's avatar Richard Frank

A slightly more user friendly hack I’m using right now…

Add a category description “hide” to every gallery you don’t want to display and then use conditionals to test for the description:

{exp:gallery:categories gallery="gallery"}

            {category_row}
            {row}
            {if category_description!="hide"}<a href="http://{category_path=gallery}">{category}</a>{/if}
            {/row}
            {/category_row}

            {if subcategory_row}
                {subcategory_row}
                {row}
                {if category_description!="hide"}<a href="http://{category_path=gallery}">{category}</a>{/if}
                {/row}
            {/subcategory_row}
                
            {/if}
            {/exp:gallery:categories}
       
1 2

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.