Home › Forums › Calendar Products › Events Calendar PRO › Category Listing for Past Events
- This topic has 4 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
January 12, 2016 at 1:20 pm #1054836
Dwayne
ParticipantHello,
On my website, I am displaying a list of Past Events. In the Summary I am also showing the Categories for these events.
When clicking on the category for the past events, the page defaults to the Upcoming events in that category (not the past events).
How would I go about linking category pages which show events in the past? Is there a variable I can save and use on the category page, or some kind of pre-created solution for this functionality? Any insight into documents or code that would be helpful would be much appreciated.
Thanks.
January 13, 2016 at 9:38 am #1055392Brian
MemberHi,
Thanks for using our plugins. I can help out here.
By default we create the category views for the calendar and each one of those creates a past events area if there are events.
We do not have a method to dynamically link there, but you could use the links generated when you vist it.
For instance if you have a category called lettuce, this would link to the past events first page for it in list view:
yoursite.org/events/category/lettuce/list/?tribe_paged=1&tribe_event_display=past
You could get those links for any of the past event category views you would like.
Let me know if you have any follow up questions.
Thanks
January 13, 2016 at 10:24 am #1055443Dwayne
ParticipantBrian,
Thanks for sharing this info with me.
Is there a way to store a variable on this page – something that could be added to the body class etc?
I want to conditionally hide some info on these archive pages for past events.
I see “tribe-events-header” is getting this URL string (calendar/list/?tribe_event_display=past) as the data-baseurl.. Maybe I can apply that to a CSS class name for the entire wrapper on this page?
Thanks so much.
-
This reply was modified 10 years, 3 months ago by
Dwayne. Reason: typos
January 13, 2016 at 10:59 am #1055465Brian
MemberHere is a list of our conditionals:
https://gist.github.com/jesseeproductions/903f5ca75877b713c674
One of those might work.
February 18, 2016 at 8:34 am #1076744Support 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. -
This reply was modified 10 years, 3 months ago by
-
AuthorPosts
- The topic ‘Category Listing for Past Events’ is closed to new replies.
