nrep
Well-known member
I'm looking for a way to show all the resource manager sub-categories by default in the Resource Manager (i.e. fully expand the sidebar menu). It looks like I need to work on the resource_category_sidebar_list template to do this:
However, the "{xen:raw $childCategoryHtml}" part only shows the subcategories for the current category, so just editing out the surrounding "if" tags doesn't work.
Any thoughts on how I can do this using templating?
Code:
<ol>
<xen:foreach loop="$categories" value="$_category">
<li class="{xen:if '{$_category.resource_category_id} == {$category.resource_category_id}', 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:if is="{$_category.resource_category_id} == {$showChildId}">
{xen:raw $childCategoryHtml}
</xen:if>
</xen:foreach>
</ol>
However, the "{xen:raw $childCategoryHtml}" part only shows the subcategories for the current category, so just editing out the surrounding "if" tags doesn't work.
Any thoughts on how I can do this using templating?