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.

Show all posts assigned to all categories in all category groups

January 28, 2010 6:59am

Subscribe [2]
  • #1 / Jan 28, 2010 6:59am

    MarqueDigital

    33 posts

    I’ll try and explain as best as I can. I’ve got three category groups with several categories in each and several weblogs.

    What I want to do is build an XML template that will loop through each category group and show each category with all entries for that category.

    This is the basic code I have so far.

    <?xml version="1.0" encoding="UTF-8"?>
    <categories>
    {exp:weblog:categories category_group="1" style="linear" show_empty="yes"}
        <category name="{exp:xml_encode}{category_name}{/exp:xml_encode}" url="{category_url_title}" id="{category_id}" parent_id="{parent_id}" >
            {exp:weblog:entries category="{category_id}" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
                {title}</page>
                        
            {/exp:weblog:entries}
        </category>
    {/exp:weblog:categories}
    </categories>

    I have this working on a different website but it’s version 1.6.7. Really strange.

    Hope someone can help.
    This just returns an empty <categories> tag.

    I’m also aware that I’m not specifying a weblog but I didn’t specify one in 1.6.7 and it worked fine with multiple weblogs. Did something change in 1.6.8?

  • #2 / Feb 03, 2010 2:40pm

    lebisol

    2234 posts

    See the required part.

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

ExpressionEngine News!

#eecms, #events, #releases