Using MultiBlog to Share More

Module Aggregation

David Raynes’ MultiBlog is a must have plugin for anyone interested in content aggregation, but it’s uses are far greater than just sharing text.

Take for instance storing a master stylesheet in your main blog and sharing it with other blogs (i.e. a FAQ blog) on your system to keep your look consistent. You could also share template modules across an installation, giving you the freedom to structure different parts of your site uniquely while still being able to share common elements (header, search box, category list) painlessly.

Consider this example, where I’ve shared the header modules from blog 2 with the blog I’m currently working on:

<MTMultiBlog include_blogs="2"><$MTInclude module="header"$></MTMultiBlog>

Now I can easily make changes to the header without needing to worry about the other blogs, other than a simple rebuild.

And it isn’t limited to the body. You can use MultiBlog tags in the head as well:

<MTMultiBlog include_blogs="2"><$MTBlogName encode_html="1"$></MTMultiBlog>

I can make changes to the title (or description/modules/categories for that matter) of the master blog (blog#2) and the add-on blogs don’t need to be changed.

Search Templates

I’ve found that this trick works especially well in search templates, because according to the Movable Type documentation:

You can also use the <MTInclude> tag in your search templates to include template modules or external files. In a template, the system needs to know which weblog to look in for the module named Header. If there are search results found, the system will look in the weblog that is earliest alphabetically; if there are no search results, Movable Type will simply try to load a weblog from your database (the determination of the weblog that is chosen is undefined).

Undefined and controlled look/feel do not go hand in hand. Using MultiBlog to specify a stylesheet or template module ensures that the blog pieces you want to appear are the ones that appear.