2 Notes
Leave a note
Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.
Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.
Copyright 2007-2009 Six Apart Ltd. All content licensed under Creative Commons Attribution-Share Alike 3.0 Unported License.
Gautam Patel
September 12, 2009 11:25 AM | Reply
Unfortunately, this page isn't terribly helpful. It cross-references MultiBlog. That isn't very helpful either.
There is fairly detailed information. It just isn't here. It's over in the designer section (why?), here.
This is a summary:
Where to configure it
Configure Multiblog ("MB", aka OtherBlog or "OB") from either the Preferences > Plugins in your admin interface or in your template code directly.
Attributes of blog_ids, include_blogs and exclude_blogs
To pull or leave out content from other blogs:
Examples
MB-Enabled Template Tags
These tags support the MB/OB syntax:
Important Note
MT:Entries also supports the blog_ids attribute. But doing
is not the same thing as doing
The second expects that even if the blog with id No 3 does have a category called foozball, that very same category must also exist in the current blog.
So if you have this:
then the second example will fail, because foozball isn't a category in BlogId1 where you're invoking MB/OB.
Real subtle, that. Like 10 hours of hair-pulling subtle.
And for that very reason, it also won't work in a category archive.
Gautam Patel
September 12, 2009 9:14 PM | Reply
Configuring MultiBlog/OtherBlog: Rebuild Triggers
One of the most important aspects of this tag/feature is the rebuild trigger. Without the trigger, MB/OB can actually increase your workload.
Let's say you have three blogs, Main, Projects and Code. You want to aggregate your posts from Projects and Code and have them appear on the index page of Main.
Using the example code above, you actually do this. But this also means that when you publish a post in Projects or Code you must republish the index page of Main too.
That's daunting.
Fortunately, MB/OB has the answer built-in, right from its early development as a plug-in. You specify a rebuild trigger.
Go to the Preferences > Plugins section in your admin interface/control panel of your aggregator blog (Main, the one in which you want to pull the content from the other sub-blogs).
Click on settings; Click on Create Rebuild Triggers. Specify the event, and the corresponding action.
For the example above you'd set up two triggers: