[opencms-dev] OpenCms 8.5.1 - collector timeFrameAndCategories
Paul-Inge Flakstad
flakstad at npolar.no
Fri May 24 17:07:01 CEST 2013
Hi,
If you use mapto="propertyList:..." (not property:...), it will automatically separate categories with pipe, as far as I know.
Cheers,
Paul
Sendt fra min Sony Xperia™-smarttelefon
Cavva <davide.cavarretta at gmail.com>:
Hi all,
anybody used collector timeFrameAndCategories?
I got that it uses a property with categories.
I mapped an element to the property:collector.categories.
<mapping element="Categoria" mapto="property:collector.categories" />
I collect contents with this.
<cms:contentload collector="timeFrameAndCategories"
param="resource=/|resourceType=pubblicazione|sortDescending=true|propertyTime=collector.date|propertyCategories=collector.categories|categories=/sites/default/_categories/pubblicazioni/collane-periodiche/,/sites/default/_categories/pubblicazioni/rapporti-annuali/">
Debugging code there is row 588 of
org.opencms.file.collectors.CmsTimeFrameCategoryCollector
categoriesFound = CmsStringUtil.splitAsList(prop.getValue(), '|');
That split with pipe char and my property is separated with ","
/sites/default/_categories/pubblicazioni/rapporti-annuali/,/sites/default/_categories/pubblicazioni/rapporti-annuali/assicurazione-italiana/
there is a way to map property forcing pipe to separate categories or is it
a bug and I have to fix it?
Thank you all
Davide
--
View this message in context: http://opencms.996256.n3.nabble.com/OpenCms-8-5-1-collector-timeFrameAndCategories-tp23303.html
Sent from the OpenCMS mailing list archive at Nabble.com.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list