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
- 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 2164
- Created
- Tuesday 18 November, 2008 20:48:52 UTC
by Unknown - LastModif
- Tuesday 18 November, 2008 20:48:52 UTC