标签: modx modx-evolution modx-templates
我正在为Ditto块中的资源显示pub_date,例如:
pub_date
[+pub_date:date=`%B %d, %Y`+]
这很好用。
但是当我尝试将它放在模板中时,例如:
[*pub_date:date=`%B %d, %Y`*]
它不起作用。
没有人知道我做错了什么或更好的方法吗?
(这是在Evo 1.0.4中)
答案 0 :(得分:0)
您必须为此安装PHx。它目前维持在https://github.com/Temus/PHx