1. 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

Discussion in 'Resource Manager Support' started by HenrikHansen, Mar 19, 2014.

  1. HenrikHansen

    HenrikHansen 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?

    PHP:
    <div class="secondaryContent categoryList">
       

            <
    h3>{xen:phrase categories}</h3>
            <
    xen:if is="{$categories}">
                <
    ol>
                <
    xen:foreach loop="$categoriesvalue="$_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>
                    </
    li>
                </
    xen:foreach>
                </
    ol>
            <
    xen:else />
                <
    div>{xen:phrase n_a}</div>
            </
    xen:if>
        </
    div>
        
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    You would need customised code to make the category list available there.
     
    HenrikHansen likes this.
  3. HenrikHansen

    HenrikHansen Well-Known Member

    Everything is so complicated :cautious:
     

Share This Page