21便民:[知识] [切换城市]

...

帝国CMS内容页Title显示标题还是副标题的简单判断

当内容有副标题时,显示副标题,当有没有副标题时,显示标题:DMO21便民网

<title><?php echo $navinfor['ftitle']?$navinfor['ftitle']:$navinfor['title'] ?></title>

如果要在内容页正文中做此判断,用灵动标签来实现,代码如下:DMO21便民网

<?=$bqr[ftitle]?$bqr[ftitle]:$bqr[title]?>

(浏览:)