-
iCagenda
-
iCagenda - English
-
Multiple dates not in ascending order in subm form
Multiple dates not in ascending order in subm form
-
mediaw
-
Topic Author
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
10 years 10 months ago - 10 years 10 months ago #6667
by mediaw
After carefully setting all parameters in admin to have all dates in ascending order (first date first and last date last) everything looks fine despite the order of dates showing up in the submission form where the last date is shown first. This is not optimal and can be confusing for people. Where (what file) can this be fixed and what to do (suggestion on how to code, not good at coding..)? Would really appreciate a fast answer from someone who have a good solution.
Please someone having an idea of a solution, urgent!
Last edit: 10 years 10 months ago by mediaw.
Please Log in or Create an account to join the conversation.
-
Lyr!C
-
-
Administrator
-
-
Lead Developer
Less
More
-
Posts: 6784
-
Thank you received: 608
-
-
-
-
10 years 10 months ago #6686
by Lyr!C
Hello,
So first, upgrade to iCagenda 3.3.0.
Then, you can modified the line 2288 in file ROOT/components/com_icagenda/helpers/icmodel.php
Replace this :
By this :
An option for this is in my todo list for one of the future releases.
Latest version : iCagenda 3.9.8
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)
.
Please Log in or Create an account to join the conversation.
-
mediaw
-
Topic Author
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
10 years 10 months ago #6723
by mediaw
Hello and thank You for Your answer/support with this matter.
I've done the upgrade and changed the line according to Your instructions, cleared cache but still same thing, last date first..
Am I missing something..?
Please Log in or Create an account to join the conversation.
-
Lyr!C
-
-
Administrator
-
-
Lead Developer
Less
More
-
Posts: 6784
-
Thank you received: 608
-
-
-
-
10 years 10 months ago #6770
by Lyr!C
mediaw wrote: Hello and thank You for Your answer/support with this matter.
I've done the upgrade and changed the line according to Your instructions, cleared cache but still same thing, last date first..
Am I missing something..?
Sorry!
It's mine error...
Search for those lines in icmodel.php :
if (($daysdtest != '943916400') AND ($daysptest != NULL)) {
$days=$allDates;
sort($days);
And here, replace 'sort' by 'rsort' ...
Lyr!C
Latest version : iCagenda 3.9.8
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)
.
Please Log in or Create an account to join the conversation.
-
iCagenda
-
iCagenda - English
-
Multiple dates not in ascending order in subm form
Time to create page: 0.143 seconds