[opencms-dev] How to get a list of latest binary files uploaded in a folder structure?

Schliemann, Kai K.Schliemann at comundus.com
Mon Feb 24 09:49:14 CET 2014


Hi Gianni,
if you are using OpenCms >= 8 you can use a SOLR query in your contentload tag.
E.g.:
<cms:contentload collector="byQuery" param='fq=type:binary&fq=parent-folders:"/sites/default/YOURFOLDER"&sort=lastmodified desc&rows=10'>
...
HTH

Best regards
________________________________________

Kai Schliemann
Dipl.-Wirtschaftsingenieur (FH)
Senior IT-Berater Softwareentwicklung

comundus GmbH
Schüttelgrabenring 3, D-71332 Waiblingen
Zentrale      +49 7151-94421-10
Durchwahl  +49 7151-94421-20
Fax             +49 7151-94421-39
E-Mail k.schliemann at comundus.com<mailto:k.schliemann at comundus.com>
Internet www.comundus.com<http://www.comundus.com/>

Geschäftsführer Klaus Hillemeier
Amtsgericht Stuttgart, HRB 264290

comundus ist ein Unternehmen der IT EXCELLENCE Group
________________________________________

[facebook]<http://www.facebook.com/pages/Comundus-GmbH/163398933697079?v=wall> comundus bei Facebook



Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Gianni Tomasicchio
Gesendet: Samstag, 22. Februar 2014 21:48
An: opencms-dev at opencms.org
Betreff: [opencms-dev] How to get a list of latest binary files uploaded in a folder structure?

Hi,
is there a collector that allows to create a listo of the latest binary files saved on a folder structure?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140224/a1209908/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 725 bytes
Desc: image001.jpg
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140224/a1209908/attachment.jpg>


More information about the opencms-dev mailing list