Okay
  Public Ticket #1673938
Order of Event Calendar
Closed

Comments

  • Daniel started the conversation

    Hi,

    I have created multiple calendar. I can't find a way to re-order them.

    [stachethemes_ec cal=1,2,3] 

    Re-ordering the iDs doesn't work. Is it possible to re-order the calendar?

    Thanks in advance.

  •  94
    Valentin replied
    Good Morning Daniel,

    I'm sorry for the delay we are usually away at the weekends.

    The numbers 1, 2 and 3 in that shortcode are the calendar IDs. Did you try to use the actual calendar IDs in that order?

    You can see the calendar IDs in the Calendar List.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • Daniel replied

    Hi Valentin,

    Sure I selected the right IDs. It is like this:

    [stachethemes_ec cal=269,270,271,272,273,50,274,266,267,268,265]

    But in the front end it is like this [..._ec cal=272, 271, 269....]

    I really can't see any connection between the order in the front end and the IDs order in the backend. 

    Thanks for your help. 

    Daniel

  •  877
    Zhivko replied

    The calendars order is not affected by the cal shortcode attribute. I'll take a look at this and will try to fix it in the next update.

    Meanwhile you could do something like this:

    Open file stachethemes_event_calendar\front\js\adds\top.calfilter.js and on line 160 insert this code:

            master.calData.calendarsPool.sort(function (a, b) {
                return a.id - b.id;
            });

    This will order the calendars by id number.


    Stachethemes Developer

  • Daniel replied

    Hi Zhivko,

    Thanks for your reply.

    I tried your suggestion. It works, but the order is still not what I wanted. The issue is, that the ID order is like this: 3, 2, 1, 6, 3.... 

    It is ok for now. So I will wait for your fix in the next update :-)

    Thanks in advance.