opencms 按自定义文档的日期字段来给文档排序

一、
根据《OpenCMS内容管理入门指南》
4.4 XSD 高级配置

给文档的日期字段映射到collector.date字段,然后使用已有的allInFolderPriorityDateDesc来排序

<mappings>
		<mapping element="Title" mapto="property:Title"/>
		<mapping element="Keywords" mapto="property:Keywords"/>
		<mapping element="Date" mapto="property:collector.date"/>
</mappings>

猜你喜欢

转载自63528605.iteye.com/blog/1917812