Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
10.7k views
in Q2A Core by
On opening the Questions page, the "Recent" sort filter is applied by default. Is there a way I can switch this to "Hot!"? Also is there a way to hide some of the other sort filters like "Most voted" and so on?

Thanks.
Q2A version: 1.6.1

1 Answer

0 votes
by

You can use $QA_CONST_PATH_MAP in qa-config.php to map URLs.

by
so in my case, do you mean I need to add this to my config file:
$QA_CONST_PATH_MAP = array(
    'hot' => 'questions'
);

Is this what you mean?
by
Yes, that should do it.
by
I found it necessary to add the case  "recent" to qa-page-questions.php (in the switch on line ~91) so that the next/prev buttons had the correct URL (with the parameter sort=recent). The problem lies in the $linkparams array, which gets empty on default.
...