Article Manager Layout Configuration - Joomla! Forum - community, help and support
i have site being developed client. requested article manager set show recent articles in top of list in descending order.
i know can sort list manually, wanted know if list can set default newest articles on top?
i have looked through article manager options, have yet determine setting.
thanks in advance guidance.
i know can sort list manually, wanted know if list can set default newest articles on top?
i have looked through article manager options, have yet determine setting.
thanks in advance guidance.
try following:
edit file articles.php located in directory \administrator\components\com_content\models , change following lines of code shown below
before edit
after edit:
note:
(a) make copy of file before editing it
(b) changing core jommla! file (not overriding code), file may overwritten future releases of joomla!
(c) code has been tested initial load of articles list in article manager
(d) articles sorted in created date
edit file articles.php located in directory \administrator\components\com_content\models , change following lines of code shown below
before edit
code: select all
$ordercol = $this->state->get('list.ordering', 'a.title');
$orderdirn = $this->state->get('list.direction', 'asc');after edit:
code: select all
//$ordercol = $this->state->get('list.ordering', 'a.title');
//$orderdirn = $this->state->get('list.direction', 'asc');
$ordercol = 'a.created';
$orderdirn = 'desc';note:
(a) make copy of file before editing it
(b) changing core jommla! file (not overriding code), file may overwritten future releases of joomla!
(c) code has been tested initial load of articles list in article manager
(d) articles sorted in created date
Comments
Post a Comment