I use both
MovableType and TWiki on my website and I'm building this plugin to allow trommWiki to access
MovableType data.
Syntax Rules
The
%MOVABLETYPE{...}%
variable gets expanded to the content pulled from a
MovableType installation.
%MOVABLETYPE% Parameter |
Explanation |
Default |
blog_id |
id of the blog |
%MOVABLETYPEPLUGIN_BLOG_ID%, Set in TWikiPreferences or WebPreferences. Currently set to 4. |
category |
blog category label |
none |
format |
Format of one item. Can include variables in the table below. |
none |
view_template |
Name of a MovableType template to be used for formatting category output See mt-view.cgi |
none |
search_template |
Name of a MovableType template to be used for formatting search output See mt-search.cgi |
none |
search |
Search string |
none |
Format $variables |
Description |
$cat_id |
Numeric category id |
$category |
Category label |
$version |
MovableType version number (2.64 is the latest version) |
$blog_name |
Name of the blog identified by the current blog_id |
Examples
- %MOVABLETYPE{ format=" $version " }% = %MOVABLETYPE{ format=" $version " }%
- %MOVABLETYPE{ blog_id="1" category="MovableType" format=" $cat_id " }% = %MOVABLETYPE{ blog_id="1" category="MovableType" format=" $cat_id " }%
- MoreMovableTypeExamples
MovableTypePlugin Global Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%
, i.e.
%MOVABLETYPEPLUGIN_SHORTDESCRIPTION%
- MovableTypePlugin settings:
- MOVABLETYPEPLUGIN_DIR is the directory you installed mt in, i.e. /home/user/public_html/mt/
- Set MOVABLETYPEPLUGIN_DIR = /home/trommett/public_html/cgi-bin/
- MOVABLETYPEPLUGIN_BLOG_ID is the default blog id number
- Set MOVABLETYPEPLUGIN_BLOG_ID = 4
- Debug plugin: (See output in
data/debug.txt
)
Plugin Installation Instructions
Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
- Download the ZIP file from the Plugin web (see below)
- Unzip
MovableTypePlugin.zip
in your twiki installation directory. Content: File: | Description: |
data/TWiki/MovableTypePlugin.txt | Plugin topic |
data/TWiki/MovableTypePlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/MovableTypePlugin.pm | Plugin Perl module |
- Test if the installation was successful:
- If the Plugin is installed successfully, you'll see the MovableType Version here: %MOVABLETYPE{ format=" $version " }%
Plugin Info
Related Topics: TWiki06x01.TWikiPreferences,
TWiki06x01.TWikiPlugins
--
JasonTromm - 26 Jun 2003
I welcome it! BTW: Comments should go to
MovableTypePluginDev.
Ah - I understand now - this plugin pulls articles from a
MovableType installation. Still useful. Perhaps you can upload it here?
--
MartinCleaver - 26 Jun 2003
This plugin is not really necessary. See
IncludingBlogSearchInTwiki which allows searching all blogs in an MT installation, not just one.
--
StanleyKnutson - 09 Sep 2003