Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Kwida,

    I’m afraid 5 is hardcoded, and in fact, the agenda widget (day mode) is changing in 3.0.0: it will show events on a particular day. Clicking forward/back will navigate between days with events, and it will render as many events as there are that day.

    Thread Starter Kwida

    (@kwida)

    Ah, ok,

    So how would I get the event list as it is on the calendar, for the next weeks, with its date, time and color event ?
    Is it going to change this on the page : https://cneaf.fr/

    Thanks a Lot for your help

    Thread Starter Kwida

    (@kwida)

    Hello Stephen,
    I’ve just updated the plugin and as you said, the agenda is now only showing 1 event.
    Is there any way I could use to show 10 events in this calendar ?
    I am using this great plugin on 2 websites and this particular widget has a very good view in the home page.
    Thanks for your help,
    Regards,

    I’m afraid 5 is hardcoded, and in fact, the agenda widget (day mode) is changing in 3.0.0: it will show events on a particular day. Clicking forward/back will navigate between days with events, and it will render as many events as there are that day.

    This answers the question I came to ask. Upgrading to 3.0 changed this for us, and I’m being asked to change functionality back. When setting the widget to “group by” week, the days are not specified – it displays the first day of the week, then all events for that week, without the detail of which event happens on each day.

    Here is pre-3.0, grouped by day: https://i.imgur.com/XyICqg9.png
    Then, after upgrading to 3.0: https://i.imgur.com/AugtufV.png
    Finally, 3.0 grouped by week: https://i.imgur.com/Hnzg0wo.png

    I’m trying to get functionality back to the first image. Anyone have an idea how I can do that? Attempt to downgrade to pre-3.0 to get the old widget?

    For reference, my widget details are default: https://i.imgur.com/ed45F8g.png
    Thanks!

    Thread Starter Kwida

    (@kwida)

    Hello Stephen,
    I have the feedback from the websites users, and they prefer having the agenda listed the way it was before.
    AsBlazeking says, I would rather go back to the former version.
    Is there anyway to get the former version of the plugin ?
    Many thanks,
    Regards.

    Plugin Author Stephen Harris

    (@stephenharris)

    Hi Kwida,

    You can download old versions from here: https://www.ads-software.com/plugins/event-organiser/developers/

    blazeking

    (@blazeking)

    Thank you! Reverting to old version (2.13.7 or below) restores functionality.

    @stephenharris: Thanks for a great plugin.

    @blazeking and @kwida:

    I just wanted to share with you my findings regarding
    a likely reason for the cluttered agenda widget list in the ‘week’ or ‘month’ mode.

    I selected the ‘week’ mode and then dug through the code and found that the group_change() method only works for the ‘day’ mode.

    I’m not sure though why this mode restriction is added?

    Here’s the relevant part from the frontend.js file:

    eventorganiser.agenda_widget.prototype.group_change = function( previous, current ){
    
        if( previous === false ){
            return true;
        }
    
        //------------------------------------------------------------
        // This check is doesn't work well in 'week' or 'month' mode
        if( this.param.mode !== 'day' ){
        	return false;
        }
        //------------------------------------------------------------
    
        return previous.format( 'YYYY-MM-DD' ) !== current.format( 'YYYY-MM-DD' );
    };

    The inline comment is added by myself for clarification.

    I wouldn’t recommend modifying the plugin files though.

    Hope this helps.

    ps: and here’s a CSS workaround to only display 5 days in the ‘week’ mode and remove the agenda’s navigation bar:

    .eo-agenda-widget .eo-agenda-widget-nav,
    .eo-agenda-widget ul.dates li.date:nth-child(6),
    .eo-agenda-widget ul.dates li.date:nth-child(7) {
     display: none;
    }
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Agenda widget number of events’ is closed to new replies.