Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何根据 DAM 中的文件大小对搜索进行排序。我正在尝试这个,排序似乎不起作用,可能是因为 dam:size 是一个字符串:
type=dam:Asset path=/content/dam/<my_project> nodename=*.pdf orderby=@jcr:content/metadata/dam:size orderby.sort=desc
使用 XPath,您可以这样做: /jcr:root/content/dam/<site>//element(*,dam:Asset) order by jcr:content/metadata/@dam:size descending
/jcr:root/content/dam/<site>//element(*,dam:Asset) order by jcr:content/metadata/@dam:size descending