[英]EZ PUBLISH manually display result
here's my code 这是我的代码
{foreach $collection.attributes as $attribute}
{$attribute.contentclass_attribute_name|wash}:
{attribute_result_gui view=info attribute=$attribute}
<br />
{/foreach}
what I want is to manually display the result for presentation purposes. 我想要的是手动显示结果以供演示。
I've tried var_dump {$collection.attributes|@var_dump}
but only gives me this result array
. 我已经尝试了var_dump
{$collection.attributes|@var_dump}
但只给了我这个结果array
。
any idea guys? 有什么主意吗?
thanks in advance. 提前致谢。
Try: 尝试:
{section name=Attribute loop=$collection.attributes}
{$Attribute:item.contentclass_attribute_name|wash}
{$Attribute:item.data_text|wash}
{/section}
To figure out what variable hold required string try " |attribute(show,2) " on any object in ezpublish: 要弄清楚哪个变量持有所需的字符串,请在ezpublish中的任何对象上尝试“ | attribute(show,2) ”:
{$attribute.contentclass_attribute_name|attribute(show,2)}
Then you will see whichone var is storing it. 然后,您将看到哪个变量正在存储它。
This can be helpful: 这可能会有所帮助:
http://share.ez.no/learn/ez-publish/how-to-create-ez-publish-forms/(page)/4 http://share.ez.no/learn/ez-publish/how-to-create-ez-publish-forms/(page)/4
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.