Community Documentation

Extract Movable Type content as xml

Last updated April 4, 2006. Created by ax on January 14, 2004.
Log in to edit this page.

1. Install the following as a new Movable Type template called Drupal Convert, with drupal.rdf specified as the Output File.

<?xml version="1.0" encoding="iso-8859-1"?>
<items>
<MTEntries lastn="1000" sort_order="ascend">
<item about="<$MTEntryLink$>">
<title><$MTEntryTitle encode_xml="1"$></title>
<description><$MTEntryBody encode_xml="1"$></description>
<link><$MTEntryLink$></link>
<subject><$MTEntryCategory encode_xml="1"$></subject>
<creator><$MTEntryAuthor encode_xml="1"$></creator>
<date><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></date>
</item>
</MTEntries>
</items>

2. Save the template, and rebuild. Movable Type will offer to rebuild drupal.rdf for you. The file will contain the last 1000 Movable Type entries, encoded as XML, sorted in ascending date order. This will be helpful if you are turning them into drupal blog entries, because drupal displays blog entries in reverse node id (database insert) order.

Comments

Somebody could tell me how to

Somebody could tell me how to add this template in the MT.

Installation guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here