Re: Re: カスタムテンプレートで文字数制限
2014年7月18日 at 13:38
ちょうど時間空いたので試してみました。
属性で複数行のテキスト(ハンドル:topics_text)を作り対応することにしました。
<?php
$topicsText = $cobj->getAttribute('topics_text');
echo mb_strimwidth($topicsText, 0, 150, ' . . .');
?>
文字数に制限掛けたい時は、属性で追加して対応することにします。
ありがとうございました。
Your post has been saved and will be published after approval by the forum moderator.