Main menu

Forum


× Help Forum English

[SOLVED] Event page - date list - Ascending Order

  • MMarzan
  • Autore della discussione
  • Junior Member
  • Junior Member
Di più
13 Anni 10 Mesi fa - 13 Anni 9 Mesi fa #2210 da 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?
Ultima Modifica 13 Anni 9 Mesi fa da Lyr!C. Motivo: [SOLVED]

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
13 Anni 9 Mesi fa - 13 Anni 9 Mesi fa #2220 da Lyr!C
Risposta da Lyr!C al 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 allegato:

Ultima Modifica 13 Anni 9 Mesi fa da Lyr!C.

Si prega Accedi o Crea un account a partecipare alla conversazione.

Moderatori: Lyr!C
Tempo creazione pagina: 0.057 secondi

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new