By Guest on Monday, 08 June 2015
Replies 3
Likes 1
Views 1.4K
Votes 0
Ahoi,

I have got a problem concerning my events' order. Of course I have created a menu item "show categories" (I only have one) and it works fine. But its order is ascending - so I like to have it descending.

now:

01.01.2013
Event 1
02.01.2013
Event 2
...
01.01.2015
Event n


better:

01.01.2015
Event n
...
01.01.2013
Event 1
02.01.2013
Event 2


As you can see, the order shall be reversed. I know it's said to be a way as easy as smashing your head to your desk but obviously I was not able to find it. I am slowly going crazy.

thanks in advance


PHP Version : 5.4.39
MySQL Version : 5.1.73-log
Joomla : 3.4.1
component_com_jevents : 3.2.15
component_com_jce : 2.3.2.4
module_mod_jevents_cal : 3.2.15
module_mod_jevents_custom : 3.2.15
module_mod_jevents_filter : 3.2.15
module_mod_jevents_latest : 3.2.15
module_mod_jevents_legend : 3.2.15
module_mod_jevents_switchview : 3.2.15
plugin_content_jevents : 3.2.15
plugin_finder_jevents : 3.2.15
plugin_search_eventsearch : 3.2.15
For getting that ordering, you need to create a template overrides for the category view and reorder the events there as per your needs.
·
Tuesday, 09 June 2015 16:26
·
1 Likes
·
0 Votes
·
0 Comments
·
Thanks - I already thought it would not be that simple. And I guess how-to's for this can only be accessed by membership?

I have changed
$r = 0; $r < $num_events; $r++
to
$r = $num_events-1; $r >= 0; $r--
in
/components/com_jevents/views/default/cat/tmpl/listevents_body.php
but it only works on every page seperately. (e. g. when displaying 10 events per page).
·
Thursday, 11 June 2015 18:19
·
1 Likes
·
0 Votes
·
0 Comments
·
See https://www.jevents.net/frequently-aske ... ng-layouts for a basic intro to template overriding - then change the call to datamodel->getCatData to reverse the data order. Look in the datamodel.php file for the definition.
·
Friday, 12 June 2015 08:46
·
1 Likes
·
0 Votes
·
0 Comments
·
View Full Post