当内容有副标题时,显示副标题,当有没有副标题时,显示标题:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17704.html
<title><?php echo $navinfor['ftitle']?$navinfor['ftitle']:$navinfor['title'] ?></title>
如果要在内容页正文中做此判断,用灵动标签来实现,代码如下:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17704.html
<?=$bqr[ftitle]?$bqr[ftitle]:$bqr[title]?>
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17704.html