1
2
3
4
5
|
{dede:arclist row= '10' } <li><a href= "[field:arcurl /]" title= "[field:fulltitle/]" > [field:fulltitle runphp= 'yes' ] $titlefull = @me; $titleshow =cn_substr( $titlefull ,90); if ( $titlefull != $titleshow ){ $dot = "…" ;} else { $dot = "" ;}@me = $titleshow . $dot ;[/field:fulltitle] </a></li> {/dede:arclist} |
上面的是截取标题长度为90的时候的方法