Warning: Illegal string offset 'top' in /www/wwwroot/hellyhua.com/wp-content/themes/Snape/single.php on line 45

帝国cms采用灵动标签时,我们一般用<?=$bqr

?>输出标题,如下图:

[e:loop={"select title,titleurl from xjb_ecms_dzkb where `classid` = '$GLOBALS[navclassid]' order by newstime",1,24,0}]<li><a href="<?=$bqr[titleurl]?>"><?=$bqr

?></a></li>[/e:loop]

一,帝国cms灵动标签截取标题字数的方法:
将上面的<?=$bqr

?>换成<?=esub($bqr

,30)?>,这里面的30代表字节数,也就是显示15个汉字

二,帝国cms灵动标签显示标题属性的方法:
1,在SQL语句中,将titlefont字段也要选取出来:select titlefont,title,titleurl from......
2,将上面的<?=$bqr

?>换成<?=DoTitleFont($bqr[titlefont],$bqr

)?>

三,帝国cms灵动标签又要显示标题属性,又要截取标题字数的方法:
将一、二方法综合一下,将<?=$bqr

?>换成<?=DoTitleFont($bqr[titlefont],esub($bqr

,30))?>


Warning: Illegal string offset 'footer' in /www/wwwroot/hellyhua.com/wp-content/themes/Snape/single.php on line 49