• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RM 1.1 Add category list to resource view


Well-known member
I want to add the category list to each resource description (resource view). So I copy code from resource index and insert into resource_view.

However, the result is categories: N/A. Why?

<div class="secondaryContent categoryList">

        <h3>{xen:phrase categories}</h3>
        <xen:if is="{$categories}">
            <xen:foreach loop="$categories" value="$_category">
                <li class="{xen:if '{$_category.resource_category_id} == {$selectedCategoryId}', selected}">
                    <a href="{xen:link resources/categories, $_category}" {xen:if $_category.category_description, 'title="{xen:helper striphtml, $_category.category_description}" class="Tooltip" data-tipclass="resourceCategoryTooltip"'}>{$_category.category_title}</a>
                    <span class="count">{xen:number $_category.resource_count}</span>
        <xen:else />
            <div>{xen:phrase n_a}</div>