Create a Custom Placeholder for Event Formatting
This tutorial forms part of our series of tutorials for creating an custom add-on for Events Manager called “Styles”, where we will be able to select from a list of styles during event registration. In our previous tutorial, we added a custom field to the events search form.
Create Custom Event Information Pages
We're continuing our series of tutorials for our creating our own custom add-on called "Styles" by creating a custom page that will dynamically display a list of all available Styles and upcoming events associated with it. We had previously integrated our styles add-on with Events Manager's MultiSite Globlal Tables Mode.
Creating Conditional Placeholders for Events
In our previous tutorial in this series we created a custom placeholder for our "Styles" example add-on for Events Manager. We will now do something similar but with a very different purpose, add CONDITIONAL placeholders for our events.
Modifying Placeholder Default Information
Some default placeholders can be directly modified with template files. However, since some placeholders require such small information, it's not worth making every bit of information require a template file.
Modifying the Event Calendar HTML
The event calendar, as with most other part of Events Manager, can be modified using template files. By adding a specific file to your theme folder which overrides the default calendar format, you can use the information passed on by Events Manager to generate the calendar to your exact specifications.
Overriding Event Page Content With Filters
When users access the events page, Events Manager decides what to show based on the rest of the URL. So, for example, `mysite.com/eventspage/locations/` or `mysite.com?p=x&locations_page=1` would return a list of current locations.
Turning Your Events List Into Tables
By default, Events Manager uses unordered HTML lists to display event information, in this sort of format: