eyoucms,后台自定义变量如何在模板中判断?
{eyou:if condition='($eyou.global.web_attr_30 == 0)'}{/if}
eyoucms支持php原生函数
列举几个不常用的标签:
1、多行文本如何换行输出,先分别写上<p></p>
先给两行分别加<p></p>
{$eyou.field.字段名称|htmlspecialchars_decode=###}输出。
又或者 使用 html_entity_decode() 函数
例如:假设自定义字段为fuwu
列表页:
{$field.fuwu|html_entity_decode}
内容页:
{$eyou.field.fuwu|html_entity_decode}
同样的效果
相关文章