Documentation for Movable Type Plugin: CrossBlog
Adds a tag allowing one blog to add an entry to another Movable Type blog -- even on a different system. (You need the username and password, of course.)
For example, if you have two blogs and you want to post an entry on one blog announcing that you've posted something on your other blog, CrossBlog will let you do that.
Download here.
VERY IMPORTANT NOTE:
While it is not required from a code standpoint, from a usability standpoint
you will need the HighWater plugin.
Why? Because you need some way to tell whether an entry is brand new or just
being rebuilt. Otherwise, every rebuild could cause CrossBlog to post a new
entry to the other blog. You should install the HighWater plugin and make sure
that there is a HighWater.txt file containing the entry number of your latest
blog entry. Otherwise, it may consider every entry as being new, and CrossBlog
might try to post every entry to the other blog. (Of course, that can actually
work to your benefit if you want to transfer all your entries to another blog.)
Configuration:
You will probably want to set some default values in the CrossBlog.pl file.
(Although it is not necessary; you can pass all the information necessary from
a template.) The values you can set are highlighted in red:
my $id = $args->{blogid} || "1"; |
The blog ID number of the blog you want to cross-post to by default. |
my $username = $args->{username} || "username"; |
The username for that blog. |
my $password = $args->{password} || "password"; |
The password for that blog. |
my $proxy = $args->{proxy} || "http://yoursite.com/cgi-bin/MT/mt-xmlrpc.cgi";
|
The URL for mt-xmlrpc.cgi on that blog. |
my $title = $args->{title} || "New
entry at $blog_name"; |
The default title for the entry that will appear on the other blog. $blog_name will be replaced with the name of the current blog, unless a different valueis passed from the template. |
Usage example:
<MTIfNewHighWater>
<MTCrossBlog blogid='4' username='user' password='password' proxy='http://someplace.com/cgi-bin/mt/mt-xmlrpc.cgi'
title='A new entry on my other blog'>
<B><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></A></B>:
<MTEntryExcerpt>
</MTCrossBlog>
</MTIfNewHighWater>
The example would post an entry to the second blog containing a bold
link back to the entry on the original blog, along with an exerpt from that
entry.
Parameters:
blogid |
The blog ID number of the blog you want to cross-post to. |
username |
The username for that blog. |
password |
The password for that blog. |
proxy |
The URL for mt-xmlrpc.cgi on that blog. |
title |
The title for the entry that will appear on the other blog. |
blog_name |
The name of the blog that is generating the cross-post. |
NOTE: This plugin has not be tested with MT3. Since I moved off Movable Type a couple of years ago, I'm no longer familiar enough with it to offer support if you run into problems with the plugin. Sorry, but if it doesn't work, I can't help you.