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?