Main menu

Forum


× Help Forum English

[SOLVED] Event page - date list - Ascending Order

  • MMarzan
  • Topic Author
  • Junior Member
  • Junior Member
More
13 years 10 months ago - 13 years 10 months ago #2210 by MMarzan
Hello all,

I'm trying to solve a problem with event page.

The list of date, that appears in the bottom of page is showing all dates of the event, but this dates are in descending order...

I want to show this dates in a Ascending Order.

I noticed this line

<?php echo $item->datelistUl; ?>

But i really dont know where this dates are ordering... could you help me?
Last edit: 13 years 10 months ago by Lyr!C. Reason: [SOLVED]

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
13 years 10 months ago - 13 years 10 months ago #2220 by Lyr!C
Replied by Lyr!C on topic Event page - date list - Ascending Order
I think it's better to wait that i add the option in the component, as to edit it, you have to edit icmodel.php

The problem is, if an update, you will have to re-edit the file.

But id you want to edit it, in version 2.0.4, in icmodel.php, go to line 876 :

Add the line:
sort($days);

Here :
protected function datelistUl ($i){
		$days=unserialize($i->dates);
		sort($days);
	        $totDates = count($days);

sort = Ascending Order / rsort = Descending Order

Hope that can help, and works ;)

Latest version : iCagenda 4.0.17 Joomla! 4 > Joomla! 6
We recommend every user to keep iCagenda updated.
Support for iCagenda version 3.9 (the final version compatible with Joomla 3) ended on October 13, 2026
Extended security support for the iCagenda PRO 3.9 version until October 13, 2027 (to benefit from this extended support, you must have a Pro subscription: www.joomlic.com/extensions/icagenda)
Don't forget to have your Joomla!® up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

Last edit: 13 years 10 months ago by Lyr!C.

Please Log in or Create an account to join the conversation.

Moderators: Lyr!C
Time to create page: 0.047 seconds

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new