[opencms-dev] CmsResourceCollector file name filter
Leo Ruggeri
lruggeri at maticad.it
Fri Jun 15 11:35:57 CEST 2012
Hello,
reading documentation and searching the web i found many examples like this
about using collectors:
<cms:contentload collector="allInFolderPriorityDateDesc"
param="/Alkacon/webpages/Homepage/articles/article_%(number).html|xmlcontent
|5" editable="true">
It is supposed to filter resources by type and filename (NOT ONLY folder
name).
However, looking at the source code of OpenCms 8, for example
CmsDefaultResourceCollector
You see the part "article_%(number).html" is always ignored. The count
filter is applied after the resources are fetched from the db.
The question is:
1. If I'm not understanding how it works, please correct me
2. Is it possible to filter resources of the same type by their name
BEFORE they are fetched from the db?
Bye, Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120615/6537fb54/attachment.htm>
More information about the opencms-dev
mailing list