On 27-02-2017 13:51, mounir moumli wrote:
> Hello,
>
> We are trying to get the name of a taxonomy category.
>
> The categories have locales (en, de, nl), we use the following code to retrieve the name
> |
> category.getInfo("en").getName();
> |
> where category is of type org.onehippo.taxonomy.api.Category
>
> what we expect to return is the bold part of the following ("test english"):
> |
> <?xml version="1.0" encoding="UTF-8"?>
> <sv:node sv:name="test-node-name" xmlns:sv="
http://www.jcp.org/jcr/sv/1.0">
> <sv:property sv:name="jcr:primaryType" sv:type="Name">
> <sv:value>hippotaxonomy:category</sv:value>
> </sv:property>
> <sv:property sv:name="hippotaxonomy:key" sv:type="String">
> <sv:value>test-key</sv:value>
> </sv:property>
> <sv:node sv:name="hippotaxonomy:categoryinfos">
> <sv:property sv:name="jcr:primaryType" sv:type="Name">
> <sv:value>hippotaxonomy:categoryinfos</sv:value>
> </sv:property>
> <sv:node sv:name="en">
> <sv:property sv:name="jcr:primaryType" sv:type="Name">
> <sv:value>hippotaxonomy:categoryinfo</sv:value>
> </sv:property>
> <sv:property sv:name="hippotaxonomy:name" sv:type="String">
> Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
> You received this message because you are subscribed to the Google Groups "Hippo Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to