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.

weblog:categories - does weblog= do anything?

November 20, 2008 11:35pm

Subscribe [1]
  • #1 / Nov 20, 2008 11:35pm

    netbuilder

    30 posts

    I’m fighting with categories, which I seem to do alot…  :long:

    EE 1.64, Build:  20080808

    Trying to list categories that have entries in specific weblog - the category group is used with a few different weblogs.

    My Code:

    {exp:weblog:categories weblog="events" show_empty="no" style="linear" show_future_entries="yes"}
                   <a href="http://{homepage}city_events/{category_url_title}" title="{category_name}"> {category_name}</a>
     {/exp:weblog:categories

    }

    Questions:
    Should “weblog=events” limit the categories returned to those that have entries in “events” weblog? Because it does not seem to.

    show_future_entries effects the resulting list although it is not show in the docs, should it?

    Thanks for any assistance.

  • #2 / Nov 21, 2008 2:13pm

    Greg Aker

    6022 posts

    netbuilder:

    Yes it should be.  How is it not working for you?  Also, I’d recommend updating to 1.6.6, as it is a security release.

    -greg

  • #3 / Nov 22, 2008 5:05pm

    netbuilder

    30 posts

    It looks like the list returned includes Categories that have an entry in ANY WEBLOG not just the one specified. The category group in question is used by several weblogs.

    So I was trying to understand the purpose of the parameter

    weblog = “events”

    I thought it would only return Categories that have Entries in specified weblog. Maybe I missed something??

  • #4 / Nov 23, 2008 9:27pm

    Lisa Wess

    20502 posts

    Hi, netbuilder - weblog= will only show entries from existing weblogs; however, if you share the category group and another weblog has an entry in it, then the category will still show up rather than be hidden as an empty category.  There is a feature request to change this, so I’d recommend adding your voice to that thread. =)

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

ExpressionEngine News!

#eecms, #events, #releases