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.

Dynamic Sidebar

March 15, 2011 2:45pm

Subscribe [2]
  • #1 / Mar 15, 2011 2:45pm

    Evolve Websites

    110 posts

    Hi there,

    I’d like to create a sidebar that enables users to filter the results on a page.

    To do this I’m planning on using a list of categories, that link to pages displaying entries for only that category.

    My question is this: How can I make the sidebar only display cateogies that have entries i.e. not display a category if there is no information contained within it?

    Thanks in advance.

  • #2 / Mar 15, 2011 5:30pm

    Boyink!

    5011 posts

    There is a show_empty parameter on the channel categories tag.  Set it to “no”.

  • #3 / Mar 16, 2011 1:43pm

    Evolve Websites

    110 posts

    Perfect, thanks!

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

ExpressionEngine News!

#eecms, #events, #releases