Home › Forums › Welcome! › Pre-Sales Questions › hide category from calendar views AJAX bug?
- This topic has 7 replies, 2 voices, and was last updated 10 years, 5 months ago by
Brook.
-
AuthorPosts
-
November 5, 2015 at 1:00 pm #1022308
Denis
GuestHi There,
I’m considering purchasing your plug-in but I have a couple of questions:
I need to use event categories to manage separate event calendars. But have the following questions:
1) I need to hide certain categories from the all events calendar page so I’m using the hide category from calendar view filter as recommend here: https://theeventscalendar.com/knowledgebase/hide-category-from-calendar-views/
However I seem to be seeing an AJAX bug similar to the one previously reported here (https://theeventscalendar.com/support/forums/topic/month-view-previous-next-navigation-loses-category-filter/) where the AJAX code for switching months for all events page (i.e. example.com/events/) does not hide events from the filtered categories, whereas when I load/reload the URL the filtered event categories are hidden as expected. Has this bug reappeared in your latest version 3.12.4?
2). Is there a way to have a different page template for different event categories (i.e. example.com/events/category/cat1 versus example.com/events/category/cat1) in order to display a different calendar description copy above the category event view depending on which category is being viewed?
3) Regarding the Pro event Widget, can select multiple categories that I wish to be display in the widget?
Thanks for your help. Denis.
November 5, 2015 at 11:14 pm #1022431Brook
ParticipantHowdy Denis,
I would love to help you with this.
- That is quite possible a bug in our example code. I will flag that up for us to review. We do that once per release, so it might be a few weeks before we have a chance to fix it. 🙁
- Definitely possible with some PHP knowledge. If you wish to show a different page template per category you could modify the snippet below to do so. Or, you could create a single page template and selectively show text based on what ‘tribe_events_cat’ you are in.
- For sure! That’s a built in feature. No need for snippets. 🙂
Here’s the snippet for step 2:
https:// gist.github.com/elimn/60364baa828edaeca245
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
November 6, 2015 at 2:03 am #1022466Denis
GuestThanks Brook for your quick response.
I do not see the code snippet for answer 2 above ☹️. Perhaps you forgot to paste it in ?.
Also, Any word from your team as to how bug report in number 1 as for this plug-in to be useful for my website i would need the category filtering to work. Or can I achieve this using a different method.
– Denis.
November 6, 2015 at 7:13 am #1022532diane
ParticipantI’m having the exact same issue. I would assume that the bug has reappeared.
November 6, 2015 at 3:22 pm #1022708Brook
ParticipantHowdy Denis,
I am sorry that code is not appearing. Its hosted on github, and github integration is not working right at the moment.
Try this URL in your browser: gist.github.com/elimn/60364baa828edaeca245
Also, Any word from your team as to how bug report in number 1 as for this plug-in to be useful for my website i would need the category filtering to work. Or can I achieve this using a different method.
I am not sure I understand the question. Are you wondering why that snippet doesn’t work for ajax? Ajax views have a different set of parameters than normal. I am not certain, but it could be that tribe_is_event_query() won’t be set for them at the point that snippet runs, hence the bug.We will have to investigate though to be sure and craft a fix.
Does that answer your questions?
Diane, are you using this snippet as well? https://theeventscalendar.com/knowledgebase/hide-category-from-calendar-views/
Cheers!
– Brook
November 9, 2015 at 7:54 am #1023222Denis
GuestThanks for that code example, can you get me example of how to choose a different template depending on which category is being viewed.
Yes, it appeared from the old thread (https://theeventscalendar.com/support/forums/topic/month-view-previous-next-navigation-loses-category-filter/) that this AJAX filtering issue was fixed in version 3.11.1. So I also tried that version of the plugin but I still see the same problem so maybe it was never fixed.
-Denis.
November 9, 2015 at 5:32 pm #1023540Brook
ParticipantHello again Denis,
Thanks for that code example, can you get me example of how to choose a different template depending on which category is being viewed.
That snippet should be appearing for you now. I linked to it in both of my comments. Here it is again just in case you’ve missed it:
Yes, it appeared from the old thread (https://theeventscalendar.com/support/forums/topic/month-view-previous-next-navigation-loses-category-filter/) that this AJAX filtering issue was fixed in version 3.11.1. So I also tried that version of the plugin but I still see the same problem so maybe it was never fixed.
That issue does not quite relate to what you are talking about here, which is why you are not seeing it “fixed” in 3.11.1+ The issue in that thread related to the calendar stock, without the category hiding modification. The only reason they tried the category hiding mod was to fix the issue in the stock calendar, that was then patched in 3.11.1.
Again, it looks like there might be a bug in the modification. We will have to rewrite it when we rewrite all of the tutorial in preparation for the 4.0 launch.
I hope that info helps. Cheers!
– Brook
November 16, 2015 at 7:19 pm #1026686Brook
ParticipantThanks for marking the answer correct. I am going to archive this topic since it’s resolved.
Cheers!
– Brook
-
AuthorPosts
- The topic ‘hide category from calendar views AJAX bug?’ is closed to new replies.
