我开发了自己的小程序,通过露天使用来显示文档。按发布日期缩短所有Feed文档。我用di:已发表的财产。它不起作用,怎么做?
共享config.custom.xml
<!-- cm:content type (existing nodes) -->
<config evaluator="node-type" condition="cm:content">
<forms>
<!-- Default form configuration used on the document details and edit metadata pages -->
<form>
<field-visibility>
<show id="di:published" />
</field-visibility>
</form>
<!-- Document Library pop-up Edit Metadata form -->
<form id="doclib-simple-metadata">
<field-visibility>
<show id="di:published" />
</field-visibility>
<edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
</form>
<!-- Document Library Inline Edit form -->
<form id="doclib-inline-edit">
<field-visibility>
<show id="di:published" />
</field-visibility>
</form>
</forms>
</config>
答案 0 :(得分:0)
我认为你的数据类型是日期,它正在将数据排序为字符串。请验证这一点。如果这是问题而不是在feed.Return数据只要日期。