Forums

How to display latest news in different order


Jimako ยป 1 month ago
For latest news [without changing core code]

copy latestnews_menu.php file and rename it f.e. latestnews2_menu.php

add (or any needed order)
$parms['order'] = ' news_title ASC ';

above line:
$treeparm = array();

and use a new menu in the Menu Manager.

For news grid - core code change is needed

- open news.php in news plugin, find render_newsgrid() method and change line
$parms['order'] = 'n.news_datestamp DESC';

there is issue #4092 about this

For all news - core code change is needed

open news.php in news plugin and change line

private $order = 'news_datestamp';

It should be enough.

Be warned. Any changes to core code are not recommended and they will be overridden with the next update.


JMadmin

Jimako
Main Admin
JMadmin

Moderator(s): Jimako, kreossino

Latest Downloads

e107 version 2.3.0 from 17.03.2020
in Category: Stuff in development

e107 version 2.3.0 from 17.03.2020

2 weeks ago

e107 CMS downloaded from Github 17.03.2020 - called 2.3.0.0 - deleted e107 tests - deleted Voux and Landing Zero themes. This pack is for users that are working with our themes. Stable version 2.2.1 i 
Read more..

e107 version 2.3.0 from 17.03.2020
JM Download plugin 1.2
in Category: JM Download plugin

JM Download plugin 1.2

1 month ago

Plugin for extending the core Download plugin. Version 1.3 on Github Replaced JM_Download plugin, Latest Releases by Father Barry,  Top Downloads menu by SecretR, AACGC Download Tracker by M@CH!N3 Ver 
Read more..

JM Download plugin 1.2
JM Core plugin 1.6.0
in Category: e107 plugins

JM Core plugin 1.6.0

3 months ago

The version used on this site. It fixes some core limitation via the plugin, no core changes. Check Readme at first.  Version 1.6.1 on github What is inside? - fix for missing titles in the main me 
Read more..

JM Core plugin 1.6.0