Articles to be ordered by

Articles to be ordered by Created Date - Asc and Des for Mini Frontpage Pro. Thanks
Resolved
The discussion has been resolved.

Accepted Answer

  • Replied by admin on Wednesday, February 24 2021, 10:25 AM
    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 :

    $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';
    		}

    • anirudh7 - more than a month ago
      Actually it broke another minifrontpage modules(i have multiple modules).

      I dont mind waiting for the next update

      2. I cant load more than 12 articles, do I need to change server side settings?
    • admin - more than a month ago
      If you change only the DESC to ASC then it will applied to all modules those have different order settings. But if you use if($ordering == 'c_dsc'){ , it will be applied to module which ordered by 'created' only.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
     
  • Replied by admin on Wednesday, February 17 2021, 07:22 AM · Hide· #1
    Hi are you suggesting a feature or something else ?
    • anirudh7 - more than a month ago
      I want to sort the articles by created date(ascending order)
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by admin on Thursday, February 18 2021, 03:57 AM · Hide· #2
    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
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by anirudh7 on Wednesday, February 24 2021, 10:00 AM · Hide· #3
    Can you please update me the code to achieve it via override, current state defeats my purpose.
  •  
  • Replied by anirudh7 on Wednesday, February 24 2021, 11:38 AM · Hide· #4
    Just changing Desc to ASC worked like charm for now, thanks
    • admin - more than a month ago
      Ok, glad could help ;)
  •  
  • Replied by anirudh7 on Thursday, February 25 2021, 09:57 AM · Hide· #5
    ignore
  •  
  •  
    Replied by admin on Thursday, March 04 2021, 05:05 AM · Hide· #6
    Hi, Just want to let you know that Minifrontpage 1.4.0 is already released and available to download from : https://www.templateplazza.com/items/mini-frontpage-pro

    Changelog:
    + Added new Infinity theme, with Ajax and Infinity Scroll feature (available for Joomla 3.x and K2 version only. Joomla 4.x version is not yet supported due to some unresolved issues in Joomla 4.x Beta)
    + Added Show Tags
    + Added Title and Popularity (by Hits) ordering
    + Added Ordering direction option
    + Added item as background option to default theme
    - Fixed image not found when trying to generate thumbnail, when wrong image url inserted
    - Fixed same background image issue when multiple Collage themes with the same layout are published
    - Updated some deprecated jQuery code
    - Fixed some bugs on default template
    - Fixed carousel themes (also Carousel Big and XT) issue on tablet (iPad)
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments