management:categoryPath

This tag fetches the full path of a category. Important tag in followup searches based on assigned categories for example.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

categoryId

true

 

Object/String

The categoryId you wish to get the full path to.

 

ID-result variable contains:
A String-object.

Examples

The following example gets a list of ContentCategory-objects assigned to the latest content version in the current language on the content bound by the property Article. It also prints the list and shows off another tag which gives you the full path.

<content:assignedCategories id="categories" propertyName="Article" categoryKey="Area"/>
<c:forEach var="category" items="${categories}" varStatus="count">
    <c:out value="${category.id}"/>
    <management:categoryPath id="path" categoryId="${category.id}"/>
    path: <c:out value="${path}"/><br>
</c:forEach>



comments powered by Disqus