Articles to be ordered by
- Posted by Anirudh Kumar (4) Offline
Articles to be ordered by Created Date - Asc and Des for Mini Frontpage Pro. Thanks
3 years 10 months ago #1
by Anirudh Kumar
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5261) Offline
- Posted by TemplatePlazza (5261) Offline
Ah ok, it will be available in the upcoming 1.4.0 version. We will release it very soon. Please stay tune
https://www.dropbox.com/s%2Fcwl49m2abst7m9k%2FMonosnap%25202021-02-18%252010-52-44.png?raw=1
3 years 10 months ago #3
by TemplatePlazza
https://www.dropbox.com/s%2Fcwl49m2abst7m9k%2FMonosnap%25202021-02-18%252010-52-44.png?raw=1
Please Log in or Create an account to join the conversation.
- Posted by Anirudh Kumar (4) Offline
Can you please update me the code to achieve it via override, current state defeats my purpose.
3 years 9 months ago #4
by Anirudh Kumar
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5261) Offline
It can't be achieved via template override, you need to change the helper file.
Please open this file with your php editor :
modules/mod_minifrontpagepro/Helper/MinifrontpageproHelper.php
at lines 121 you will see this code :
change that to :
3 years 9 months ago #5
by TemplatePlazza
Please open this file with your php editor :
modules/mod_minifrontpagepro/Helper/MinifrontpageproHelper.php
at lines 121 you will see this code :
$ordering = ArrayHelper::getValue($order_map, $params->get('ordering'), 'a.publish_up');
$dir = 'DESC';
change that to :
$ordering = ArrayHelper::getValue($order_map, $params->get('ordering'), 'a.publish_up');
if($ordering == 'c_dsc'){
$dir = 'ASC';
}else {
$dir = 'DESC';
}
Please Log in or Create an account to join the conversation.
- Posted by Anirudh Kumar (4) Offline
Just changing Desc to ASC worked like charm for now, thanks
3 years 9 months ago #6
by Anirudh Kumar
Please Log in or Create an account to join the conversation.