Main menu

Forum


× Help Forum English

[SOLVED] Event page - date list - Ascending Order

  • MMarzan
  • Topic Author
  • New Member
  • New Member
More
11 years 3 months ago - 11 years 3 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: 11 years 3 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
11 years 3 months ago - 11 years 3 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 3.9.3
We recommend every user to keep iCagenda updated.
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: 11 years 3 months ago by Lyr!C.

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

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

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new