帝國CMS靈動標籤截取標題字數例子

<table width=”100%” border=”0″ align=”right” cellpadding=”0″ cellspacing=”0″ >
[e:loop={10,10,0,0}]
<tr  height=”26″>
<td>&nbsp;
<a href=”<?=$bqsr[titleurl]?>” target=”_blank”><?=esub($bqr[title],30)?></a></td>
<td width=”52″>
<?=date(‘m-d’,$bqr[newstime])?>
</td></tr>
[/e:loop]
</table>


[e:loop={欄目ID/專題ID,顯示條數,操作類型,只顯示有標題圖片}]
模板代碼內容
[/e:loop]


<?=esub($bqr[title],30)?>這裏面的30代表字節數,也就是顯示15個漢字。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章