Home › Forums › Calendar Products › Events Calendar PRO › Set Month from grid to list view
- This topic has 4 replies, 3 voices, and was last updated 10 years, 7 months ago by
Support Droid.
-
AuthorPosts
-
September 9, 2015 at 2:17 pm #1003489
robert
ParticipantInstead 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
September 10, 2015 at 10:27 am #1003794Nico
MemberHowdy 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,
NicoSeptember 11, 2015 at 6:02 am #1004166robert
ParticipantThanks 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!
RobSeptember 11, 2015 at 8:46 am #1004287Nico
MemberHey 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,
NicoSeptember 26, 2015 at 7:05 am #1008932Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Set Month from grid to list view’ is closed to new replies.
