Article

Wes Baker's avatar

Event Channel Set

by: Wes Baker on: 5/13/2016 | Read in 2 minutes

Quickly create an Event Channel in ExpressionEngine with this Channel Set.

The Event Channel Set comes with custom fields and statuses to get you up and running fast. Further customizations can be made to tailor your event display, but here’s what’s inside:

Custom Fields

  • {event_address}: a Text field for the physical address of the event
  • {event_contact}: a Grid field to contain contact info for the event
    • :name - a Text field for the contact’s name
    • :position - a Text field for the contact’s position / title
    • :phone_number - a Text field for the contact’s phone number
  • {event_description}: a Textarea to describe the event
  • {event_related_events}: a Relationship to similar / related events

Statuses

  • Open: published
  • Closed: not published
  • Featured: to call special attention to an event, typically on the homepage

Sample Tags

{exp:channel:entries channel='event' limit='1' require_entry='yes'}
	{if no_results}
		{redirect='404'}
	{/if}

	<h1>{title}</h1>

	<p>{event_address}</p>

	{event_description}

	<h2>Contact Info</h2>
	<ul>
		{event_contact}
			<li>{event_contact:name}, {event_contact:position}: {event_contact:phone_number}</li>
		{/event_contact}
	</ul>

	{if event_related_events:total_results > 0}
		<h2>See Also</h2>
		<ul>
			{event_related_events}
				<li><a href="{event_related_events:url_title_path='event/index">{event_related_events:title}</a></li>
			{/event_related_events}
		</ul>
	{/if}
{/exp:channel:entries}
Wes Baker's avatar

Wes Baker

I'm a programmer who enjoys board games, puzzles, and making things work.

Have ideas on how to improve this article? .(JavaScript must be enabled to view this email address) or share your feedback with @ellislab on Twitter.

ExpressionEngine News

#eecms, #events, #releases