Monday, 08 June 2015
  3 Replies
  1.4K Visits
0
Votes
Undo
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
Tuesday, 09 June 2015 16:26
·
#149979
0
Votes
Undo
For getting that ordering, you need to create a template overrides for the category view and reorder the events there as per your needs.
Thursday, 11 June 2015 18:19
·
#149980
0
Votes
Undo
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).
Friday, 12 June 2015 08:46
·
#149981
0
Votes
Undo
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.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.