By L'Eclaireur SARL on Thursday, 16 March 2017
Posted in General
Replies 8
Likes 0
Views 444
Votes 0
Hi,

I try to display the events list group from the more recent event to the older event.

But I have an issue and I would like to understand how it works.

I have overide template/html/com_easysocial/events/default/items.php. I have just use a array_reverse on $events array

When I click on events link under the header https://snag.gy/GWNQpi.jpg , the view it's ok: https://snag.gy/rabTls.jpg
But when I click on events in the applications menu, I have a pagination and the array_reverse works only on the events on the 1st page. https://snag.gy/JwsVK9.jpg

I don't understand how works this pagination and why my array is not completly reverse.

I want just understand
- How I can reverse my array
- Or how I can delete pagination and display all events on my page.

Can you give me the good way to do that, please ?

Thank you.
You're welcome

We will see if we can include a checkbox similar like event listing page from the group event filter in the future.
·
Tuesday, 21 March 2017 23:38
·
0 Likes
·
0 Votes
·
0 Comments
·

I try to display the events list group from the more recent event to the older event.
- How I can reverse my array

I am not encourage you do array reverse from the theme file, based on what i tested in my locally, if you view on event listing page, it should show older event until newest event, is it this not showing on your site?
Or I misunderstand is it you would like to show those event start from newest event until older event?

- Or how I can delete pagination and display all events on my page.

Currently we do not have option to disable this pagination, but you can modify on this file -> JoomlaFolder/administrator/components/com_easysocial/models/events.php , check my screenshot below.
·
Friday, 17 March 2017 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

1- Yes, I want to show those event start from newest event until older event.
array_reverse works fine when I go on event page from header link, but I have an issue when I go on event from app event link.

2- Ok, but I don't like to change core files because of update composant.
·
Friday, 17 March 2017 20:48
·
0 Likes
·
0 Votes
·
0 Comments
·
I will discuss with our developer regarding this, by right it should show the latest event on the first instead of older event.

Try download my attached screenshot below and replace into
JoomlaFolder/administrator/components/com_easysocial/models/events.php
·
Saturday, 18 March 2017 12:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Virginie,

I already discuss with our developer regarding this, It seems like that is correct behaviour to show nearest event on the event listing page, imagine if the user create a lot of new event and the start date he set to next year 2018, so the event listing page will always show these event at the first page, other visitor will not know what is the nearest event your site make it.

If you really want to show the latest event created date at the first, you can download my attached file and replace into that file location.
·
Monday, 20 March 2017 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

I need to show older event until newest event, because my web site is for school events. The issue to the actualy dispaly, is that I have past events first. Or events are created year by year (from september to september).
It is necessary that the information of the new events is easy to find for my users.

Prehaps it will be good, to add the checked case "include past event" and/or a filter by date?

Thank you for your job, I'll try the new file and I'll say you if it's ok.
·
Monday, 20 March 2017 17:45
·
0 Likes
·
0 Votes
·
0 Comments
·
I need to show older event until newest event, because my web site is for school events. The issue to the actualy dispaly, is that I have past events first. Or events are created year by year (from september to september).
It is necessary that the information of the new events is easy to find for my users.

By default, event listing page should show the older event until newest event, perhaps you can check again with your FTP detail which you provided for us is no longer working now.

Hm, I would like to ask what kind of event consider is older event?
For example :
1. Event A -> 1 March 2017 - 25 March 2017
2. Event B -> 19 March 2017 - 31 March 2017
3. Event C -> 1 April 2017 - 30 April 2017


Prehaps it will be good, to add the checked case "include past event" and/or a filter by date?

Actually we did have this filter, I think i probably know why you can't see it, try take a look of my video here http://take.ms/Bol7d , it seems like your current template override Easysocial default styling.

I've applied following css in this file JoomlaFolder/templates/cmonecole/html/com_easysocial/css/custom.css , it should show correctly on event listing page now.


#es .events-content-wrapper label[for=es-show-past-event] {
color: #fff !important;
}


When you tick that checkbox, so it will included the pass event as well.
·
Monday, 20 March 2017 23:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,


1 - I test your file and it works fine, thank you !

2 - About your example: the older is Event A then Event B then Event C, I use start date event.

3 - We don't look the same page ! My issue is on group app events view : https://snag.gy/KFq3ab.jpg - Events for one group and not events for all groups. I have delete all links to global events page.

May be that the events page of the application could be like the events page. Or just add past events checkbox

Thank you for your job and developer job.
·
Tuesday, 21 March 2017 16:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post