is it possible to change the order of the forum_type blocks?

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
caiocald
Registered User
Posts: 213
Joined: Mon Feb 26, 2018 9:32 pm
Name: B!

is it possible to change the order of the forum_type blocks?

Post by caiocald »

I would like my forum blocks to be in the sequence:
announce > sticky > normal > global

but I'm not getting it. can someone help me with the code? am i using the right function?

Code: Select all

'core.viewforum_get_topic_ids_data'					=> 'viewforum_get_topic_ids_data',
..........
public function viewforum_get_topic_ids_data($event)
    {

        $sql_ary = $event['sql_ary'];
        $sql_ary['ORDER_BY'] = 't.topic_type DESC, t.topic_last_post_time DESC ';
        $event['sql_ary'] = $sql_ary;
        var_dump($sql_ary);
    }
Post Reply

Return to “Extension Writers Discussion”