Apperceptive | Plugins | Multiblog

MultiBlog Documentation

Purpose

MultiBlog is a plugin that provides the user with the ability to include templated content from other blogs in their MovableType installation. It also allows the user to define rebuild triggers as normally posts to one blog do not cause rebuild in another that might be including content from it. Finally, MultiBlog allows the user to define access controls for the blogs in their system, to prevent one blog from accessing the content of another.

Installation

Download the plugin archive and unpack it into the main directory of your Movable Type installation.

Installation for 1.x (not 1.99.x)

Unpack the archive and places the following files in the specified locations.

multiblog.pl

plugins/

multiblog-config.cgi

the main MT directory, and have its permissions set so that it may be execute (usually 'chmod 755')

MultiBlog.pm, MultiBlogApp.pm, MultiBlogPlugin.pm

extlib/rayners/

Installation for 2.x and 1.99.x

Simply unpack the archive into the main MT directory. The files will be expanded into the appropriate directories.

If upgrading from a 1.x version of MultiBlog, please remove all files from the previous version of the plugin before unpacking the archive.

Configuration and Setup

Section on MultiBlog setup and configuration.

Access Controls

Rebuild Triggers

Template Usage

MTMultiBlog

MTMultiBlog is a MTBlogs replacement that allows the user to specify which blog or blogs they wish to access.

  • include_blogs: a comma seperated list of blog ids to include (e.g., "1,3,4")

  • exclude_blogs: a comma separated list of blog ids to exclude (e.g., "2,5")

MTMultiBlogIfLocalBlog

MTMultiBlogIfNotLocalBlog

MTMultiBlogEntries

MTMultiBlogComments

Example MultiBlog Usage

Including Content from a Side Blog

First, make sure that the current blog is allowed to access content in the included blog (which is the default). Once that has been established, the following template code can be included in the "Main Index" template, though it could be any index template that is rebuilt when indexes are rebuilt.

<h3>Side Blog</h3> <MTMultiBlog include_blogs="7"> <MTEntries lastn="10"> <div class="entry"> <h4><$MTEntryTitle$></h4> <p><$MTEntryBody$></p> </div> </MTEntries> </MTMultiBlog>

If you do not know the blog id for your side blog, simply navigate to it in the Movable Type interface and look at the URL in the browser.

Combining Multiple Blogs Into One

Support

If your questions were not answered here, please visit the Apperceptive forums.