PhpCMS文章内容页添加副标题的方法
发布时间:2016-12-23 来源:查字典编辑
摘要:下面查字典教程网把方法告诉大家在show.html将标题处修改为:{$title}{if$titleintact}—&mdash...
下面查字典教程网把方法告诉大家
在show.html将标题处修改为:
<div id="content_head">
<>
<h1>{$title}</h1>
{if $titleintact}<h2><center> ——{$titleintact}</center></h2>{else}{/if}
</div>
自动将“完整标题”字段内容,设为副标题。
显示为:
标题——副标题