This object is in archive! 
Change default sort order on /responses page
Hi,
I want to change the default sort order for responses from "popular" to "updated", when someone goes to https://ourresponsesite.com/responses
As I don't see an option for this, so I tried to find the PHP code that controls this, however so far I have not had luck.. Can someone point me in the right direction for what code I need to modify in order to change the default sort order on the /responses page..
Thanks,
Now in 2.0 release, default sorting selected at Administration->Responses is affected on Responses listings
Now in 2.0 release, default sorting selected at Administration->Responses is affected on Responses listings
Sorry, meant to post this as a question not an idea.. I tried to edit my post and change it to a question but after I save it still shows as a idea..
Sorry, meant to post this as a question not an idea.. I tried to edit my post and change it to a question but after I save it still shows as a idea..
This bug is fixed. Please see attached file and put it in /public/assets/modules/questions/js/
This bug is fixed. Please see attached file and put it in /public/assets/modules/questions/js/
Ryan,
You can change default filter to show on responses list page at application/modules/system/controller/ResponsesController.php - line 75
$activeStatus = $this->_getParam('status', 'popular');
or you can take the settings from db to place here: Singular_Core::_("settings")->getSetting("top_responses");
Ryan,
You can change default filter to show on responses list page at application/modules/system/controller/ResponsesController.php - line 75
$activeStatus = $this->_getParam('status', 'popular');
or you can take the settings from db to place here: Singular_Core::_("settings")->getSetting("top_responses");
Ryan, please redownload archive and change all public/assets folder in your installation.
Ryan, please redownload archive and change all public/assets folder in your installation.
Stas,
Just got back from an emergency trip I had to take. Thanks for the fix and the answer to my question on how to change the default sort. Both are working great.
Stas,
Just got back from an emergency trip I had to take. Thanks for the fix and the answer to my question on how to change the default sort. Both are working great.
Stas,
Your change for the default filter worked great for the https://ourresponsesite.com/responses page..
How can that also be done for the follow page?
https://ourresponsesite.com/responses/responses/questions/status/all
Thank you,
Stas,
Your change for the default filter worked great for the https://ourresponsesite.com/responses page..
How can that also be done for the follow page?
https://ourresponsesite.com/responses/responses/questions/status/all
Thank you,
Now in 2.0 release, default sorting selected at Administration->Responses is affected on Responses listings
Now in 2.0 release, default sorting selected at Administration->Responses is affected on Responses listings
Replies have been locked on this page!