XF 2.2 Fetch current "selected" categories while viewing XFRM category

Russ

Well-known member
Trying to do a bit of a unique edit.

Inside xfrm_category_view, the category list is pulled into the sidebar. If there are children in the current category, the menu is expanded.

What I'm trying to do is inside that template move the selected categories above the filter bar:

0qccjXB.png


This is the code that calls the entire category tree:

Code:
    <xf:macro template="xfrm_category_list_macros" name="simple_list_block"
        arg-categoryTree="{$categoryTree}"
        arg-categoryExtras="{$categoryExtras}"
        arg-selected="{$category.resource_category_id}" />

Is there a way of modifying it to show only the "selected items", in the screenshot it'd be "XenForo translations [2.x]" and "Add-on translations [2.x]"
 
Top