ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Suppressing categories associated with currently running entries

September 18, 2012 6:36pm

Subscribe [1]
  • #1 / Sep 18, 2012 6:36pm

    porpoise

    30 posts

    I have a “past events” listing page. I’ve made it so people can filter these events by category. But according to ExpressionEngine, an event that is currently running is BOTH past AND future. Therefore, a category will appear for an event that is currently running on the past events landing page. How do I tell EE to hide any categories associated with any currently running entries?

    This is my code:

    {exp:channel:categories channel="resident" style="nested" category_group="3" show_empty="no" show_expired="yes" show_future_entries="no"}
         <a href="http://{path=residencies/past}">{category_name}</a>
    {/exp:channel:categories}

    Thanks!

  • #2 / Sep 20, 2012 3:03pm

    Kevin Smith

    4784 posts

    Hi porpoise,

    Hmm… I can see what you’re trying to accomplish here, but it doesn’t look like there’s a way to accomplish that with EE at the moment, and I’ve looked at several of the third-party add-ons for listing categories, and none of them support this sort of thing either. Perhaps this would be a good suggestion for the Feature Request forum?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases