XF 2.2 Change In forum_view Template 2.2

Ozzy47

Well-known member
In 2.1 there was this:
Code:
<xf:set var="$sortOrders" value="{{ {
        'last_post_date': phrase('last_message'),
        'post_date': phrase('first_message'),
        'title': phrase('title'),
        'reply_count': phrase('replies'),
        'view_count': phrase('views'),
        'first_post_reaction_score': phrase('first_message_reaction_score')
        'first_post_reaction_score': phrase('first_message_reaction_score'),
    } }}" />

What has that changed to in 2.2? I need to find that for a template modification in a addon.
 
Sort options can vary by forum type, so they are now defined in PHP. You can change the default sort options in \XF\Repository\Thread::getDefaultThreadListSortOptions(), or in a type handler extension (getThreadListSortOptions()) if the order is particular to a forum type.
 
Back
Top Bottom