電脳  ]  2008.08.29 04:44:10    このエントリーをdel.icio.usに追加 このエントリーをはてなブックマークする このエントリーを含むはてなブックマーク はてなポイントをあげる Movable Type 4.2とMovable Type 4.21リリース
Movable Typeを4.2にしました。……と思ったら、こんなニュースが。
[重要] Movable Type 4.21 出荷開始
4.2でなく4.21を入れろと言うことですか……
4.2にしたのは、リリースされてすぐで、少しトラブルが有ったので、表示は4.1のままでした。中国に行ってからヒマの有る時にバグ潰しをしようと思ってたのですが、甘かった……中国の回線からアップデートしたくなーい。
とりあえず、4.1から4.2したときの 、問題点を2点あげときます。
バージョンアップ前にウィジェットセットのバックアップを
4.1からウィジェットセットを使っていたのですが、4.2にしたら、設定が全部消えました。
Movable Type 4.2 へのアップグレード
MT4.0x から MT4.1 へのアップグレード後の注意点
いくつか公式にも注意点があげられてますが、何がおかしかったのか自分でも分らないでいます。ちまちま復元してくしかないですね。スクリーンショット等でメモを取っておいてから、バージョンアップした方がいいかも知れません。
recently_commented_onがうまく動かない
下のコードはうちの「最近のコメント」表示部分です。赤色のlimit="100"を挿入しないと、「最近のコメント」をうまく表示してくれなくなりました。
<div class="sidebox">
<div class="sideys">Recent Comments</div>
<mt:Entries recently_commented_on="5" sort_order="descend" limit="100">
<div class="sidelin">
<a href="<$MTEntryPermalink$>" title="<$MTEntryTitle$>">
<$MTEntryTitle$></a> <span class="ssday"><$MTEntryDate format="%m.%d"$></span><br />
<MTComments lastn="4">
└ <a href="<$MTEntryPermalink$>#<$MTCommentID$>"><$MTCommentAuthor$><span class="ssday"><$MTCommentDate format="%m.%d"$></span></a><br />
</MTComments>
</div>
</mt:Entries>
</div>
このバグ解決のヒントは、こちらから。
recently_commented_on no longer working?
The solution is to add limit="100" to the MTEntries tag, so something like:
<MTEntries recently_commented_on="10" limit="100">
...
</MTEntries>
If 100 isn't enough, try a larger number. No idea why this works or is needed, but it does.
Incidentally, this is only needed if the template is being published statically. If you're publishing the template dynamically, the limit modifer isn't required to get recently_commented_on working.
Posted by Hiromi| Permalink | comment (0) | trackback (0)
TAGz  
Trackback Pings
Trackback URL for this entry.
http://lab.yinguo.net/sc4/yinbbk.cgi/817
Leave your comment
Name and E-mai address are required. 投稿には名前とメールアドレスが必要です。
E-mail address never displayed. メールアドレスは表示されません。
  

Your Comment : Remember personal info?
After the preview,you can post a comment. プレビュー後にコメントを投稿できます。