[opencms-dev] method to get exact categories of a resource
RĂ¼diger Kurz
r.kurz at alkacon.com
Thu Nov 8 11:43:28 CET 2012
Hi Kris,
You can call:
org.opencms.relations.CmsCategory.getPath()
this is exactly the value stored inside Solr for each category
regards RĂ¼diger
On 07.11.2012 10:38, kaybe wrote:
> Is there a method I could use that gives me the 'exact categories' (By exact
> categories I mean as catagory_exact in SOLR search). For example: an
> article has a category color/red AND local\Europe. When I use method
> readResourceCategories(CmsObject cms, CmsResource resource) of
> CmsCategoryService I got 4 seperate categories listed: color, red, local,
> Europe. That way I can not display this in the formatter as "categories:
> color\red local\Europe."
> Kind regards,
> Kris
More information about the opencms-dev
mailing list