Will Johnston
Aug 27 2008, 08:13 AM
I think the title pretty much describes it. I need the archive page on my main blog to display entries for all of the blogs in my installation. I've tried simply adding blog_ids="all" in the Entries tag, but I'm pretty sure that doesn't work because the categories have different CategoryIDs even though they have the same name. So, for example, if I create the category "Education" on my main blog and then recreate it on another blog, those are actually different categories that have the same name.
Any thoughts?
Thanks,
Will
Will Johnston
Aug 27 2008, 11:18 AM
After many hours of work, I've answered my own question. Basically, stop publishing your category archives. Just remove the category archive path from the Entry Listing template. Then create an Entry template with the same archive path as the Entry Listing category archive. Then you can do whatever you want with the with that template because it's not in the context of an archive. Here's the code for mine. Hope this helps if anyone else has the same question.
<MTSetVar name="body_class" value="mt-main-index">
<MTSetVar name="main_template" value="1">
<MTSetVar name="main_index" value="1">
<MTSetVar name="sidebar" value="1">
<MTSetVarBlock name="title"><$MTBlogName encode_html="1"$></MTSetVarBlock>
<$MTInclude module="Header"$>
<MTsetVarBlock name="CurrentCategory"><$mt:CategoryLabel$></MTSetVarBlock>
<MTEntries blog_ids="2,3,10,11" categories="$CurrentCategory">
<$MTEntryTrackbackData$>
<$MTInclude module="Entry Summary"$>
</MTEntries>
<$MTInclude module="Footer"$>