【MovableType】特定のカテゴリーの記事をエクスポートするには
特定のカテゴリーの記事をエクスポートするには下記をインデックステンプレートにすればいいということが判明。
やり方は、sixapart.comのページを参考にした。
けど、今の環境だと、エクスポートしたテキストに改行コードが混在していた。
これは要注意だ。
<MTEntries category="カテゴリー名">
AUTHOR: <$MTEntryAuthor strip_linefeeds="1"$>
TITLE: <$MTEntryTitle strip_linefeeds="1"$>
STATUS: <$MTEntryStatus strip_linefeeds="1"$>
ALLOW COMMENTS: <$MTEntryFlag flag="allow_comments"$>
CONVERT BREAKS: <$MTEntryFlag flag="convert_breaks"$>
ALLOW PINGS: <$MTEntryFlag flag="allow_pings"$>
<MTIfNonEmpty tag="MTEntryCategory">PRIMARY CATEGORY: <$MTEntryCategory$> </MTIfNonEmpty><MTEntryCategories>
CATEGORY: <$MTCategoryLabel$> </MTEntryCategories>
DATE: <$MTEntryDate format="%m/%d/%Y %I:%M:%S %p"$>
-----
BODY: <$MTEntryBody convert_breaks="0"$>
-----
EXTENDED BODY: <$MTEntryMore convert_breaks="0"$>
-----
EXCERPT: <$MTEntryExcerpt no_generate="1" convert_breaks="0"$>
-----
KEYWORDS: <$MTEntryKeywords$>
-----
<MTComments> COMMENT: AUTHOR: <$MTCommentAuthor strip_linefeeds="1"$>
EMAIL: <$MTCommentEmail strip_linefeeds="1"$>
IP: <$MTCommentIP strip_linefeeds="1"$>
URL: <$MTCommentURL strip_linefeeds="1"$>
DATE: <$MTCommentDate format="%m/%d/%Y %I:%M:%S %p"$> <$MTCommentBody convert_breaks="0"$> ----- </MTComments> <MTPings>
PING: TITLE: <$MTPingTitle strip_linefeeds="1"$> URL: <$MTPingURL strip_linefeeds="1"$>
IP: <$MTPingIP strip_linefeeds="1"$>
BLOG NAME: <$MTPingBlogName strip_linefeeds="1"$>
DATE: <$MTPingDate format="%m/%d/%Y %I:%M:%S %p"$> <$MTPingExcerpt$>
-----
</MTPings>
--------
</MTEntries>