Home › Forums › Calendar Products › Events Calendar PRO › Grid View + Venue Open/Closed
- This topic has 9 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
March 13, 2012 at 11:52 pm #16714
maeda
MemberOk I got a doozy..
I have many multi-day/multi-week events and in the grid widget they show up for every single day.
Many of the venues are closed on Monday and/or Tuesday.. so how do I hide events on the grid widget for the days where venues are closed?
March 14, 2012 at 7:46 am #16725Rob
MemberHey Maeda. Interesting request; what happens if you just go into the events for Monday/Tuesday, alter them in some way (that isn’t noticeable on the frontend) and then save them so that your updates are applied ONLY to that event (versus all in the series going forward). That would allow the recurrence pattern for open days to stay unaltered, but the Monday/Tuesday events would be broken out.
Would that be helpful in your situation, or am I misinterpreting the request?
April 8, 2012 at 2:41 am #17717maeda
MemberHey ROB! Sorry I forgot I had posted this here.
What i’ve been doing is setting up and event.. for example.. Event Z… and then entering a start date and an end date for that event. In the calendar widget it will then show a link to the event, everyday 7 days a week, between those dates.So what your suggesting is to make the event for one day, and setup a daily recurrence until the end date? and then I would go back in and turn off the days when the venue hosting the event is closed? I’ve never thought to try this!
I just had another thought… What if you write a little if/else looking for a venue name, and hiding it on certain days with css (much like my idea about hiding events from unregistered users).
April 8, 2012 at 2:47 am #17718maeda
MemberThe problem with using reccurence is that it then multiplies the event page listing by the amount of days it recurs. :/
April 8, 2012 at 3:11 am #17719maeda
MemberWhat I MEAN is that, it creates an event listing instance for every single day! The site i’m building has events listed by thumbnail, title, and calendar date (http://www.ckroad.com/?post_type=tribe_events&eventDisplay=past).
Using a recurence floods the page with listings for the same event over and over and over. It fixes the original grid-widget problem, but it substitutes it for something far worse.
April 9, 2012 at 10:06 am #17735Jonah
ParticipantHey Maeda, this is tricky and you’ll probably want to hire a dev to help you with but I can provide some additional ideas. What about creating a custom field in your Venues to be able to check that that venue is closed on certain days. I would suggest using something like http://www.advancedcustomfields.com/ for that. Then, if you want to modify the calendar widget you’ll want to edit the /wp-content/plugins/the-events-calendar/views/table-mini.php to check for that custom field in the day display loop. The hard part will be parsing the specific day of the week within the loop… You’d maybe want to check for a match between the custom field value and the day of the week…
I hope that helps!
April 12, 2012 at 1:59 am #17844maeda
MemberHey Thanks Jonah! Unfortunately I am the dev (i use that term loosely) on this project, but the good news is that, that advice does help quite a bit.
April 12, 2012 at 2:02 am #17845maeda
Member..or maybe use the custom field to pass a day-of-the-week to a class.. just thinking out loud. I’ll tinker around a bit more and post my results later.
April 12, 2012 at 8:36 am #17852Jonah
ParticipantYeah let us know what you come up with!
July 6, 2015 at 5:00 pm #976500Support 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 ‘Grid View + Venue Open/Closed’ is closed to new replies.
