Yes! While users of ECP were previously limited to just the few event settings we’d hardcoded in, those days are now a thing of the past. Now, site administrators have an option in the settings panel to add additional meta fields of their choosing, beyond the defaults.
To first configure your custom meta, you’ll log in to the backend and go to Events –> Settings. Click the Additional Fields tab up at the top:
You’ll notice right off the bat that there’s a “Field Label”, “Field Type”, and “Options.” Field Label just dictates what you want the new item to be labeled as. Upon publication it will appear alongside your event details up where start time, end time, etc. can be found. Field Type gives the choice of selecting how you want this new custom meta to be configured on the backend — your options include text fields, radio buttons, checkboxes, etc.
The Options section is where, if you picked a multi-choice field type like checkboxes or radio buttons, you’d add (on separate lines) each of the options you want to have available when creating new events:
In the example above, you’ll see we have configured a text field for the host — assuming that whoever creates the event will know the name of it’s host and can enter that in — and a checkbox field for the raffle prizes being given away, with the 3 prize options listed in the Options box.
Upon saving and navigating over to create a new event, you won’t notice anything majorly different about the page structure — you still start with your title/entry body, then get down into the event date / time / venue / organizer. But scroll to the bottom of the event details section and you’ll see the meta fields in action:
There, you’ll see that the author of this event now has a space to add the extra details not covered above when setting the date, venue & organizer. This event looks like it’s going to be a celebration: the host has been defined as local celebrity Johnny Jones, and 2 of the 3 raffle prizes are up for grabs. Sweet!
It all comes together upon publication. At the top of the event listing, where the rest of the event basics are displayed, our new meta fields can be seen. What previously was limited to looking like this:
Is now much more robust, and appears like so:
You can add multiple meta fields as you see fit, and can use any combination of choices from the “Field Type” dropdown. These new fields will appear on any event created within your site going forward, until someone removes them from the list of additional fields at Events –> Settings. They will of course not show up on the frontend unless you configure them accordingly on the backend when creating your event…so no need to fear their constant presence on events where it isn’t appropriate.
Even better — for all intents and purposes to your frontend users, there’s no difference between this and the hardcoded options that came with the plugin fresh out of the box.
Posted in: Customization