Recently in Tag Category

MT3系(たぶん4系でもそのまま使える)のダイナミックパブリッシング用の条件タグの実装方法を次にメモする。
まず、下記のテンプレートは『MovableType上級カスタマイズ術』からの引用である。

<?php
function smarty_block_条件タグ($args, $content, &$ctx, &$repeat) {
    if( $issset($content) ) {
        // 条件判断処理
        return $ctx->_hdlr_if($args, $content, $ctx, $repeat, $retcode);
    } else {
        return $ctx->_hdlr_if($args, $content, $ctx, $repeat);
    }
}
?>

これだと$argsにMTの変数を渡せないけど、どうすればいいのかわからない。

About this Archive

This page is a archive of recent entries in the Tag category.

qmail is the previous category.

UNIX is the next category.

Find recent content on the main index or look in the archives to find all content.