<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦DedeCMS有简略标题则显示简略标题,没有则显示文章标题的教程

时间:2020-12-16

织梦DedeCMS的文档发布有简略标题这个功能,经常会用到,前台页面调用这个短标题时,后台没有填写就不会显示文字,这样不好,我们可以用下面的代码来实现有简略标题则显示简略标题,没有则显示文章标题。

代码如下:
[field:array runphp='yes'] if (@me['shorttitle']=='') @me=@me['title'];else @me=@me['shorttitle'];[/field:array]

{dede:field name='array' runphp='yes'}if(@me['shorttitle']=='') @me=@me['title'];else @me=@me['shorttitle'];

    0
    首页
    案例
    关于
    联系