Help - Search - Members - Calendar
Full Version: Category Archives Display Entries For All Blogs
Movable Type Community Forum > Using Movable Type > Entries and Archives
Will Johnston
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
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"$>
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.