We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Plugins Web>MovableTypePlugin (24 Nov 2004, WillNorris)
Tags:
blogging1Add my vote for this tag import3Add my vote for this tag create new tag
, view all tags

MovableTypePlugin

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)
    • Set DEBUG = 1

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

Plugin Author: TWiki:Main/JasonTromm
Plugin Version: 01 Dec 2008 (V0.001)
Change History:  
23 Jun 2003: Started development
CPAN Dependencies: none
Other Dependencies: MovableType 2.64 or higher
Perl Version: Tested on 5.6.1, may not work with earlier versions.
Plugin Home: http://wiki.trommetter.com/TWiki/MovableTypePlugin
Feedback: http://wiki.trommetter.com/TWiki/MovableTypePluginDev

Related Topics: TWiki04x02.TWikiPreferences, TWiki04x02.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

Topic revision: r7 - 24 Nov 2004 - 05:17:37 - WillNorris
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback