RM 1.0 [RM] Resource Sorting

you'll need to make 2 simple template edits (too 2 different templates).

TEMPLATE = resource_index

Find this:
HTML:
        <ol class="tabs">
            <li class="{xen:if '{$order} == "last_update"', active}"><a href="{xen:link resources, '', 'type={$typeFilter}'}">{xen:phrase latest_updates}</a></li>
            <li class="{xen:if '{$order} == "resource_date"', active}"><a href="{xen:link resources, '', 'order=resource_date', 'type={$typeFilter}'}">{xen:phrase newest_resources}</a></li>
            <li class="{xen:if '{$order} == "rating_weighted"', active}"><a href="{xen:link resources, '', 'order=rating_weighted', 'type={$typeFilter}'}">{xen:phrase top_resources}</a></li>
            <li class="{xen:if '{$order} == "download_count"', active}"><a href="{xen:link resources, '', 'order=download_count', 'type={$typeFilter}'}">{xen:phrase most_downloaded}</a></li>
        </ol>


Add this in the position you want:
Code:
<li class="{xen:if '{$order} == "title"', active}"><a href="{xen:link resources, '', 'order=title', 'direction=asc', 'type={$typeFilter}'}">{xen:phrase title}</a></li>


TEMPLATE = resource_category

Find this:
HTML:
        <ol class="tabs">
            <li class="{xen:if '{$order} == "last_update"', active}"><a href="{xen:link resources/categories, $category, 'type={$typeFilter}'}">{xen:phrase latest_updates}</a></li>
            <li class="{xen:if '{$order} == "resource_date"', active}"><a href="{xen:link resources/categories, $category, 'order=resource_date', 'type={$typeFilter}'}">{xen:phrase newest_resources}</a></li>
            <li class="{xen:if '{$order} == "rating_weighted"', active}"><a href="{xen:link resources/categories, $category, 'order=rating_weighted', 'type={$typeFilter}'}">{xen:phrase top_resources}</a></li>
            <li class="{xen:if '{$order} == "download_count"', active}"><a href="{xen:link resources/categories, $category, 'order=download_count', 'type={$typeFilter}'}">{xen:phrase most_downloaded}</a></li>           
        </ol>

Add this in the position you want:
HTML:
<li class="{xen:if '{$order} == "title"', active}"><a href="{xen:link resources/categories, $category, 'order=title', 'direction=asc', 'type={$typeFilter}'}">{xen:phrase title}</a></li>
 
you'll need to make 2 simple template edits (too 2 different templates).

TEMPLATE = resource_index

Find this:
HTML:
        <ol class="tabs">
            <li class="{xen:if '{$order} == "last_update"', active}"><a href="{xen:link resources, '', 'type={$typeFilter}'}">{xen:phrase latest_updates}</a></li>
            <li class="{xen:if '{$order} == "resource_date"', active}"><a href="{xen:link resources, '', 'order=resource_date', 'type={$typeFilter}'}">{xen:phrase newest_resources}</a></li>
            <li class="{xen:if '{$order} == "rating_weighted"', active}"><a href="{xen:link resources, '', 'order=rating_weighted', 'type={$typeFilter}'}">{xen:phrase top_resources}</a></li>
            <li class="{xen:if '{$order} == "download_count"', active}"><a href="{xen:link resources, '', 'order=download_count', 'type={$typeFilter}'}">{xen:phrase most_downloaded}</a></li>
        </ol>


Add this in the position you want:
Code:
<li class="{xen:if '{$order} == "title"', active}"><a href="{xen:link resources, '', 'order=title', 'direction=asc', 'type={$typeFilter}'}">{xen:phrase title}</a></li>


TEMPLATE = resource_category

Find this:
HTML:
        <ol class="tabs">
            <li class="{xen:if '{$order} == "last_update"', active}"><a href="{xen:link resources/categories, $category, 'type={$typeFilter}'}">{xen:phrase latest_updates}</a></li>
            <li class="{xen:if '{$order} == "resource_date"', active}"><a href="{xen:link resources/categories, $category, 'order=resource_date', 'type={$typeFilter}'}">{xen:phrase newest_resources}</a></li>
            <li class="{xen:if '{$order} == "rating_weighted"', active}"><a href="{xen:link resources/categories, $category, 'order=rating_weighted', 'type={$typeFilter}'}">{xen:phrase top_resources}</a></li>
            <li class="{xen:if '{$order} == "download_count"', active}"><a href="{xen:link resources/categories, $category, 'order=download_count', 'type={$typeFilter}'}">{xen:phrase most_downloaded}</a></li>          
        </ol>

Add this in the position you want:
HTML:
<li class="{xen:if '{$order} == "title"', active}"><a href="{xen:link resources/categories, $category, 'order=title', 'direction=asc', 'type={$typeFilter}'}">{xen:phrase title}</a></li>


Is this working on the 1.5 Version ?

Thanks.
 
Back
Top Bottom