<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
   <channel>
      <title>MTHacks</title>
      <link>http://blog.creamu.com/mthacks/</link>
      <description>Movable Typeをハックする。MTHacks</description>
      <language>ja</language>
      <copyright>Copyright 2007</copyright>
      <lastBuildDate>Sat, 19 May 2007 00:59:36 +0900</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>MovableTypeで再構築できないときの対処法</title>
         <description><![CDATA[MovebleTypeで再構築に時間がかかり、Script Errorなどのエラーが出て再構築できない場合の対処法です。

いろいろと調べたところ、2つの方法があります。

1.mt-config.cgiの値を変更する。

mt-config.cgi
【変更前】# EntriesPerRebuild 40
【変更後】EntriesPerRebuild 10

これは一回で再構築するファイル数を設定しているようです。少なくすると軽くなるというわけですね。

■参考記事
&raquo; <a href="http://www.koikikukan.com/archives/2006/04/26-015057.php">Movable Type で再構築エラーになる場合の原因と対処</a>

2.トラックバック自動検知の設定をオフにする

MovebleTypeの設定で、「外部のリンクに対するトラックバック自動検知を有効にする」が有効になっている場合、リンクがあるとそこにトラックバックしようとします。10以上リンクがある場合、サーバのスペックにもよりますが、すべてにトラックバックしようとし、そのせいで再構築に時間がかかり、Script Errorで再構築に失敗することがあるようです。

対策としては、「外部のリンクに対するトラックバック自動検知を有効にする」のチェックをはずします。]]></description>
         <link>http://blog.creamu.com/mthacks/2007/05/movabletype_3.html</link>
         <guid>http://blog.creamu.com/mthacks/2007/05/movabletype_3.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">MovableType</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">MovableType</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">エラー</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">再構築</category>
        
         <pubDate>Sat, 19 May 2007 00:59:36 +0900</pubDate>
      </item>
            <item>
         <title>RSSフィード(atom.xml,index.xml)に改行を入れる方法</title>
         <description>自分のブログのRSSフィードを読んだことはあるだろうか？
RSSを読んでもらうことを期待するなら、是非一度チェックしてみてほしい。どんな風に読まれているか、画像の表示のされ方は？など、チェックすべき点がある。

今回紹介するのは、RSSフィードに改行を入れる方法だ。

困ったことに、MovableTypeのデフォルトでは、フィードに改行が入っていない。RSSリーダーで読んだ時に、改行がないまま文字がずらっと並んでしまうのだ。

設定方法は下記の通り。

対象ファイル：atom.xml , index.xml
【変更前】
convert_breaks=&quot;0&quot;
【変更後】
convert_breaks=&quot;1&quot;

0と1を変えるだけなのだが、デフォルトで改行の設定にしておいてほしいものだ。
改行されていないままだと、読みにくくてしょうがない。

自分のブログがどう読まれているか、ユーザを意識してエントリーを書いていきたいですね。</description>
         <link>http://blog.creamu.com/mthacks/2006/11/rssatomxmlindexxml.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/11/rssatomxmlindexxml.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">RSS</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">atom.xml</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">index.xml</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">RSSフィード</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">改行</category>
        
         <pubDate>Sat, 25 Nov 2006 17:52:17 +0900</pubDate>
      </item>
            <item>
         <title>MovableTypeのショートカット</title>
         <description>保存、再構築のショートカットがあります。

保存　：Ctrl + S
再構築：Ctrl + R

作業が結構スピードアップしますよ。</description>
         <link>http://blog.creamu.com/mthacks/2006/10/movabletype_2.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/10/movabletype_2.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">ショートカット</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">ショートカット</category>
        
         <pubDate>Tue, 24 Oct 2006 23:32:04 +0900</pubDate>
      </item>
            <item>
         <title>MovableTypeで特定のファイルの書き込み権限(パーミッション)を変更する</title>
         <description><![CDATA[MovableTypeでMovableTypeで特定のファイルだけ再構築したくない、という場合、
mt-config.cgiに一行追加することで、特定の書き込み権限を変更でき、再構築時に再構築不可のアラートが出せるようになります。

NoTempFiles 1

デフォルトではファイルのパーミッションの書き込み権限をなしにしても、強制的に書き込みされてしまうんですね。

ただ、上記の設定をしても、書き込み権限をなしにした特定のファイルをスルーして、全体を再構築、というのはできないようです。
あくまでも再構築したくない特定ファイルのリマインドとしてアラートを出す、という対策です。

下記、sixapartからの返答：

<div class="quote">お問い合わせいただきました、Movable Type で出力されたファイルに対して、直接パーミッションを変更し、今後、再構築を行っても変更したファイルのパーミッションの値が変更されないようにする方法についてですが、環境設定ファイル「mt-config.cgi」内に、環境変数「NoTempFiles」を追記し、有効にしていただくことで、実現可能です。ただし、「NoTempFiles」を有効にした場合、無効の状態と比べて、再構築時にかかる負荷が大きくなるため、処理速度が低下する可能性があります。ご注意ください。
「NoTempFiles」を有効にする場合は、「mt-config.cgi」内に、以下の行を追記してください。

NoTempFiles 1

以下の Movable Type マニュアルにも、「NoTempFiles」について記載があります。ご参照ください。
また、Movable Type で生成されるファイルのパーミッションについても、必要であれば、以下のMovable Type マニュアルの各環境変数を「mt-config.cgi」内に追記して有効にすることで変更が可能です。

■ Movable Type 3.3 マニュアル: 環境変数 >> システム
http://www.sixapart.jp/movabletype/manual/3.3/d_configuration_directives/#index-system

ただし、ファイルの所有者に対して、書き込み権限が与えられていない場合は、再構築時にエラーが発生する場合があります。その場合は、ファイルの所有者に書き込み権限を付与してください。

また、Movable Type の標準機能として、再構築時にファイルを出力する際、特定のファイルのみパーミッションを変更して出力するといった機能には対応しておりません。ご了承ください。</div>
]]></description>
         <link>http://blog.creamu.com/mthacks/2006/10/movabletype_1.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/10/movabletype_1.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">サポート</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">パーミッション</category>
        
         <pubDate>Fri, 20 Oct 2006 11:32:02 +0900</pubDate>
      </item>
            <item>
         <title>MovableTypeサーバ移行時のインポート・エクスポート方法</title>
         <description>MovableTypeサーバ移行時のインポート・エクスポートする際、ローカルのファイルを選択できるのですが、容量が重すぎたりしてうまくインポートできない場合があります。

そんな時はCGI-PATH/import/に書き出したテキストファイルをアップロード
読み込みを行うとうまくいきますね。
</description>
         <link>http://blog.creamu.com/mthacks/2006/10/movabletype.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/10/movabletype.html</guid>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">インポート</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">エクスポート</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">サーバ移行</category>
        
         <pubDate>Thu, 19 Oct 2006 16:08:25 +0900</pubDate>
      </item>
            <item>
         <title>トラックバックをコピーしやすくする方法</title>
         <description><![CDATA[下記のように、&lt;$MTEntryTrackbackLink$&gt;をinput typeで囲み、javascriptのonclickでonClick=&quot;this.select();と指定するとできあがりです。

【変更前】
&lt;MTIfPingsAccepted&gt;&lt;p&gt;このエントリーのトラックバックURL: &lt;br /&gt;&lt;$MTEntryTrackbackLink$&gt;&lt;/p&gt;

【変更後】
&lt;MTIfPingsAccepted&gt;&lt;p&gt;このエントリーのトラックバックURL: &lt;br /&gt;&lt;input type=&quot;text&quot; size=&quot;70&quot; value=&quot;&lt;$MTEntryTrackbackLink$&gt;&quot; onClick=&quot;this.select();&quot; /&gt;&lt;/p&gt;

ちょっとした小技ですが、ユーザビリティを考えるとformのlabelタグくらい重要ではないかと思います。]]></description>
         <link>http://blog.creamu.com/mthacks/2006/10/post_2.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/10/post_2.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">方法</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">javascript</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">トラックバック</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">ユーザビリティ</category>
        
         <pubDate>Wed, 11 Oct 2006 01:44:11 +0900</pubDate>
      </item>
            <item>
         <title>ブログ名を変更する方法</title>
         <description>システムメニューからブログ名を変更できますね。

ブログのディレクトリ名も変更可能です。

システムメニューからブログ名を変更すると、変更後のディレクトリ名で配下のファイルが全てコピーされます。

サーバからは変更前のディクトリごと削除すればOKですね。</description>
         <link>http://blog.creamu.com/mthacks/2006/10/post_1.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/10/post_1.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">MovableType</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">ブログ名</category>
        
         <pubDate>Mon, 09 Oct 2006 13:12:22 +0900</pubDate>
      </item>
            <item>
         <title>月別アーカイブをドロップダウンに変更</title>
         <description><![CDATA[モジュールでアーカイブのドロップダウンが提供されていますね。

サイドバーに設置しました。

<ソース変更前>
----------------------------------------------------------------------------------------------------------------
 &lt;MTIfArchiveTypeEnabled archive_type=&quot;Monthly&quot;&gt;
&lt;div class=&quot;module-archives module&quot;&gt;
&lt;h2 class=&quot;module-header&quot;&gt;&lt;a href=&quot;&lt;$MTBlogURL$&gt;archives.html&quot;&gt;アーカイブ&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;module-content&quot;&gt;
&lt;MTArchiveList archive_type=&quot;Monthly&quot;&gt;
&lt;MTArchiveListHeader&gt;&lt;ul class=&quot;module-list&quot;&gt;&lt;/MTArchiveListHeader&gt;
&lt;li class=&quot;module-list-item&quot;&gt;&lt;a href=&quot;&lt;$MTArchiveLink$&gt;&quot;&gt;&lt;$MTArchiveTitle$&gt;&lt;/a&gt;&lt;/li&gt;
&lt;MTArchiveListFooter&gt;&lt;/ul&gt;&lt;/MTArchiveListFooter&gt;
&lt;/MTArchiveList&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/MTIfArchiveTypeEnabled&gt;
----------------------------------------------------------------------------------------------------------------

<ソース変更後>
----------------------------------------------------------------------------------------------------------------
<p>&lt;MTIfArchiveTypeEnabled archive_type=&quot;Monthly&quot;&gt;
  &lt;div class=&quot;module-archives module&quot; id=&quot;monthly-archives&quot;&gt;
  &lt;h2 class=&quot;module-header&quot;&gt;&lt;a href=&quot;&lt;$MTBlogURL$&gt;weblog/&quot;&gt;アーカイブ&lt;/a&gt;&lt;/h2&gt;
  &lt;div class=&quot;module-content&quot;&gt;
  &lt;select onchange=&quot;nav(this)&quot;&gt;
  &lt;option&gt;月を選択&lt;/option&gt;
  &lt;MTArchiveList archive_type=&quot;Monthly&quot;&gt;
  &lt;option value=&quot;&lt;$MTArchiveLink$&gt;&quot;&gt;&lt;$MTArchiveTitle$&gt;&lt;/option&gt;
  &lt;/MTArchiveList&gt;
  &lt;/select&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/MTIfArchiveTypeEnabled&gt;</p>
<p>&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
  function nav(sel) {
  if (sel.selectedIndex == -1) return;
  var opt = sel.options[sel.selectedIndex];
  if (opt &amp;&amp; opt.value)
  location.href = opt.value;
  } 
  &lt;/script&gt;</p>
----------------------------------------------------------------------------------------------------------------]]></description>
         <link>http://blog.creamu.com/mthacks/2006/10/post.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/10/post.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">モジュール</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">ドロップダウン</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">モジュール</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">月別アーカイブ</category>
        
         <pubDate>Mon, 09 Oct 2006 12:27:27 +0900</pubDate>
      </item>
            <item>
         <title>サイドバーをSSIにする方法</title>
         <description><![CDATA[MTHacksでは、運用を楽にするため、サイドバー、ヘッダ部分をSSIにしています。

.htaccessの内容は下記。
----------------------------------------------------
Options +Includes
AddHandler server-parsed .html
&lt;Files *.html&gt;
XBitHack full
&lt;/Files&gt;
----------------------------------------------------

.htaccessをドメインルートディクトリにアップロードします。
このブログの場合はhttp://blog.creamu.com/.htaccess
ですね、

.htaccessは不可視ファイルなので、OS上でもFTPクライアント上でも見えません。
そのため、ローカルではtest.htaccessなど別名にしておいて、FTPでアップロード後に.htaccessにリネームするのがいいと思います。
※FTPクライアントの設定をすれば.htaccessを可視にできます。

.htaccessの設置が終わったら、テンプレートの下記beta部分をbeta.htmlと外部ファイル化し、SSIの一行に置き換えます。

<変更前>
----------------------------------------------------
&lt;div id=&quot;beta&quot;&gt;
**************
&lt;/div&gt;
----------------------------------------------------

<変更後>
----------------------------------------------------
&lt;!--#include virtual=&quot;/beta.html&quot; --&gt;
----------------------------------------------------]]></description>
         <link>http://blog.creamu.com/mthacks/2006/10/ssi.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/10/ssi.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">サーバ周り</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">.htaccess</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">SSI</category>
        
         <pubDate>Mon, 09 Oct 2006 11:58:46 +0900</pubDate>
      </item>
            <item>
         <title>MT3.2、MT3.3ではTagwire.plは使えません。</title>
         <description>MT3.2、MT3.3ではTagwire.plは使えません。

しかもTagwire.plがあると、MT3.2から標準でついてくるタグクラウドモジュールが機能しません。

そのため、CGI-PATH/plugins/Tagwire.plを削除する必要があります。</description>
         <link>http://blog.creamu.com/mthacks/2006/10/mt32mt33tagwirepl.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/10/mt32mt33tagwirepl.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">モジュール</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">Tagwire</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">タグクラウド</category>
        
         <pubDate>Mon, 09 Oct 2006 11:54:39 +0900</pubDate>
      </item>
            <item>
         <title>MTHacksについて</title>
         <description>MovableTypeのTipsやカスタマイズ方法について書いていきたいと思います。</description>
         <link>http://blog.creamu.com/mthacks/2006/10/mthacks.html</link>
         <guid>http://blog.creamu.com/mthacks/2006/10/mthacks.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">about</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">about</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">MTHacks</category>
        
         <pubDate>Mon, 09 Oct 2006 11:52:31 +0900</pubDate>
      </item>
      
   </channel>
</rss>

