Forum
Event categories
<perch:before>
<div class="controls">
<button type="button" class="control btn--alle" data-filter="all">Alle</button>
</perch:before>
<button type="button" class="control btn--<perch:events id="categorySlug" />" data-filter=".<perch:events id="categorySlug" />"><perch:events id="categoryTitle" /></button>
<perch:after>
</div>
</perch:after>
Using the above template I thought that only the categories being used would be shown, unfortunately all the categories are. Is there a way to show just the categories in use?
How are you displaying the template?
I think you want to use the
include-empty
option.that unfortunately changes nothing.
Perhaps you could explain in more detail, in that case.
ah, looking at the category listing of the events app in the backend I see that it is telling me that in all 12 events are listed. And each category has an event. I did give each category an event when testing, but deleted them later. Currently I have 6 events all in one category.
So it appears that I need to flush the category listing - can I?
also, it lists each category as having a future event, which is not the case otherwise I could delete the events right?
ok just ran a test, appears that once a category is given an event it stays as event and future event even if deleted. added two events to the same category to check and after deletion of both still listed as 1 in events and future events.
Yes, that sounds plausible. Do you need a calendar display for this? Is that why you're using Events?
no I don't need a calendar display. I need a list of events which I am filtering and sorting with mixitup
For the filter/sort controls I am using the categories.
So if after event deletion and/or becoming a past event the category listing is still showing all categories, then I have a problem.
If you don't need the calendar display, I'd probably suggest not using the Events app. It's old and has a lot of shortcomings.
But there are so many pro's as to why I should. thats a real shame. Is there a update timeline for events app?
Why would the categories be shown as having an event when no event is present?
At the moment I think the most likely scenario is that the Events app will be deprecated. Its presence may be standing as a barrier for third parties to releasing their own, and I need to focus my time of functionality that affects the most customers.
Ok that's understandable. Could I use the Perch categories as a substitute in this scenario?
Yes, everything should be achievable with started functionality, apart from the calendar view.
cool! I thanks you. Thread may be closed ;-)