Support

Home Forums Event Espresso Premium Course Category Filter – Change to a different data

Course Category Filter – Change to a different data

Posted: May 25, 2019 at 6:09 am

Viewing 1 reply thread


Street Cop Training

May 25, 2019 at 6:09 am

Hi there, is there a way to change the Course Category Filter dropdown to something different, like Venue or Class?

https://streetcoptraining.com/pro-active-patrol-course/


Tony

  • Support Staff

May 27, 2019 at 7:17 am

Hi there,

It is possible, but you’d need your own custom version of the table template and some JS to do the sorting for you.

The way that dropdown works is each row of the table includes the category slugs, the dropdown then includes the category names shown in the list, and the ‘slugs’ stored as values for the dropdown. When you select a category theres some JavaScript that runs on the page to show/hide the rows based on if they have the category slug or not.

So for venues, you’d need to include the venue slug in the row and either within that same dropdown, or another to select venues. Then you’d need some JavaScript to do what the current dropdown does (you can basically copy the current JS and target the ‘new’ dropdown).

Viewing 1 reply thread

The support post ‘Course Category Filter – Change to a different data’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso