Set Month from grid to list view

Home Forums Calendar Products Events Calendar PRO Set Month from grid to list view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1003489
    robert
    Participant

    Instead of having the Month view set as a calendar grid, is there a way to display it as a list view?

    Similar to http://events.unc.edu/?date=2015-09-09&view=month

    #1003794
    Nico
    Member

    Howdy Robert,

    Welcome to our support forums and thanks for reaching out to us. Unfortunately there’s no easy way of doing this customization 🙁

    Looking at the format of the reference you provided, it looks more like the list view than the month view included in our product. If you feel confident about your coding skills I can help you out getting on track, but note that this type of customization is out of our support scope.

    Please let me know if you would like me to give you some tips to get started on this,
    Best,
    Nico

    #1004166
    robert
    Participant

    Thanks Nico. If you could point me in the right direction, that would be great. Don’t mind doing some additional coding, to get this to work.

    Thanks!
    Rob

    #1004287
    Nico
    Member

    Hey Rob,

    Glad to hear you are going to give this a try!

    Before jumping into this, please be sure to read our Themer’s guide!

    I think the best way to achieve this would be doing a template override of the loop that renders events in the list view – located at wp-content/plugins/the-events-calendar/src/views/list/loop.php. To do so you should make a copy of this file and drop into wp-content/themes/your_theme/tribe/list/ (create the tribe and list folder if necessary). Now you can customize the loop.php file inside your theme!

    I’ll describe the logic that might work for this:
    – Outside the loop create a variable to store the ‘date header’, it should be empty.
    – Inside the loop check if the ‘date header’ is equal to the ‘current event date’.
    — If it’s the same date, then don’t do nothing.
    — If the date is not the same, then set ‘date header’ value to ‘current event date’ and print it out.

    That logic should give you the date headers for each day without repeating any.

    Please let me know if you understood the concept of this customization,
    Best,
    Nico

    #1008932
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Set Month from grid to list view’ is closed to new replies.