首页 > 运营 > 帮助中心 > 正文

织梦CMS简略标题(副标题)使用方法教程

2020-01-27 17:30:50
字体:
来源:转载
供稿:网友

织梦CMS简略标题(副标题)使用方法教程

一、简略标题调用标签:

  1. {dede:field.shorttitle/}

这个不能在{dede:arclist}标签中套用,一般放在网页titile处;

  1. [field:shorttitle/]

这个可以在{dede:arclist}标签中套用,一般用在栏目列表。

二、当有简略标题时显示简略标题,没有简略标题时显示正标题:

  1. {dede:field name=’array’ runphp=’yes’} if(@me['shorttitle']==”) @[email protected]['title'];else @[email protected]['shorttitle'];{/dede:field}

这个不能在{dede:arclist}标签中套用,一般放在网页titile处;

  1. [field:array runphp='yes'] if(@me['shorttitle']==”) @[email protected]['title'];else @[email protected]['shorttitle'];[/field:array]

这个可以在{dede:arclist}标签中套用,一般用在栏目列表。

三、简略标题字数修改:

简略标题的字数是做了限制的,可以在管理目录dede文件夹下找到下面5个文件:

  1. archives_add.php,archives_do.php,archives_edit.php,article_add.php,article_edit.php

然后分别在文件中找到代码:

  1. $shorttitle = cn_substrR($shorttitle,36);

把36改成100就可以了。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表