Loading...
 
Skip to main content

Article Module Event Sort Order

Status
Pending
Subject
Article Module Event Sort Order
Version
2.x
Category
  • Usability
Feature
Article
Resolution status
New
Submitted by
ceford
Lastmod by
ceford
Rating
(0)
Description
I am using Articles for Events and need to sort them into order of occurrence using the Publish Date. That is not possible with the supplied files because the sort parameter has been hard coded.
Solution

modules/mod-articles.php
Line 47 Old:
$ranking = $tikilib->list_articles($start, $module_rows, 'publishDate_desc', , , $user, $type, $topicId, 'y', $topic, $categId, , , $lang);
New:
$ranking = $tikilib->list_articles($start, $module_rows, $sort, , , $user, $type, $topicId, 'y', $topic, $categId, , , $lang);

templates/modules/mod-articles.tpl
Line 18 Add parameter to set sort order:
{if $module_params.sort}{$sep}sort_mode={$module_params.sort}{assign var=sep value='&'}{/if}

Importance
2
Priority
10
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2164
Created
Tuesday 18 November, 2008 20:48:52 UTC
by Unknown
LastModif
Tuesday 18 November, 2008 20:48:52 UTC


Show PHP error messages