MovableTypeの最近のブログ記事

データベースの
mt > mt_entry_meta > entry_meta_vchar_idx の種別をvarchar型からtext型に変更する
 

mtで書き出す先のドメインと、本番サイトのドメインが違う時に便利

正規表現プラグインを入れる
http://www.sixapart.jp/movabletype/plugins/regex.html

テンプレートにドメインを取り除く正規表現を書く
<$MTAssetURL regex="s|http://www.xxxxx.jp||"$>

mt-static/plugins/FCKeditor/fckeditor/fckconfig.js

FCKConfig.TemplateReplaceAll = true ;

FCKConfig.TemplateReplaceAll = false ;
 

いわゆるミニマルブログ

最近のMovableTypeは、テンプレート上で画像サイズを指定して、
構築時にリサイズやトリミングができる

サンプル


<mt:Entries>

<mt:EntryAssets>

<mt:SetVarBlock name="imgwidth"><mt:AssetProperty property="image_width" /></<mt:SetVarBlock>
<mt:SetVarBlock name="imgheight"><mt:AssetProperty property="image_height" /></<mt:SetVarBlock>
<mt:If name="imgwidth" gt="$imgheight">

<li><span><a href="<mt:EntryLink />"><img src="<mt:AssetThumbnailURL height="100" />" alt="サムネイル:<mt:EntryTitle />" title="<mt:EntryTitle />" /></a></span></li>
<mt:Else>
<li><span><a href="<mt:EntryLink />">
<img src="<mt:AssetThumbnailURL width="100" />" alt="サムネイル:<mt:EntryTitle />" title="<mt:EntryTitle />" /></a></span></li>
</mt:If>

</mt:EntryAssets>
</mt:Entries>