Main menu

Forum


× Help Forum English

[SOLVED] Event page - date list - Ascending Order

  • MMarzan
  • Auteur du sujet
  • Membre junior
  • Membre junior
Plus d'informations
il y a 13 ans 10 mois - il y a 13 ans 10 mois #2210 par 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?
Dernière édition: il y a 13 ans 10 mois par Lyr!C. Raison: [SOLVED]

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 13 ans 10 mois - il y a 13 ans 10 mois #2220 par Lyr!C
Réponse de Lyr!C sur le sujet 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) .

Fichier attaché :

Dernière édition: il y a 13 ans 10 mois par Lyr!C.

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: Lyr!C
Temps de génération de la page : 0.066 secondes

Follow Us

Créez vos templates Joomla avec Template Creator CK

acymailing logo new