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.

category_archive menu from multiple weblogs

March 30, 2011 9:27am

Subscribe [1]
  • #1 / Mar 30, 2011 9:27am

    Jeremy Schultz

    68 posts

    Hi, I am having trouble building a nested unordered list from the entries of a particular category group. I want something like:

    ul category group
      li category
        li entry
        li entry
      li category
        li entry
        li entry

    In the past I’ve done it with exp:weblog:category_archive, but this is a new category group and it spans two existing weblogs with entries coming from both. According to the docs, category_archive is for only one weblog.

    Right now I have a temporary solution by hard-coding the categories into the list and using exp:weblog:entries to pull entries for each category, but I want it to be more dynamic. Any guidance you can provide is appreciated!

    EDIT: I’ve been trying exp:weblog:categories and it looks promising, but it also seems to require one weblog. I tried the param ‘weblog=“news|downloads”’ but I get no results with that. The docs don’t say one weblog is required:
    http://expressionengine.com/legacy_docs/modules/weblog/categories.html#par_weblog

  • #2 / Mar 30, 2011 7:46pm

    Lisa Wess

    20502 posts

    Hey Jeremy,

    Yes, exp:weblog:categories takes only one weblog. The user guide used to say that, I’ll see if we can get that back in there.  The category archive tag can also take only one weblog.

    At this point, to make this dynamic, you would need to build a custom query (or better yet, plugin) to handle it.  A feature request to expand those tags to take more piped parameters could be made as well.

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

ExpressionEngine News!

#eecms, #events, #releases