I’m wondering is it possible to run an expression that will list all of my entries from a certain channel and group them according to the data from a certain field:
{exp:channel:entries channel='events' search:evnt_date="Saturday|Sunday|Monday"}
<div class="event">
<h2>{evnt_date}</h2>
<p> {exp:channel:entries channel='events' search:evnt_date="Saturday|Sunday|Monday"}<br />
</p><h3>{title}</h3>
<p> {evnt_info}...<br />
{/exp:channel:entries}<br />
</div><!-- /.event --><br />
{/exp:channel:entries}I know that the pipe doesn’t work in this case (or the code atall), it’s just to help try explain what I’d like to be happening.
I’m using date as a custom field because the ‘events’ are only happening over a set amount days so this won’t need to change once it is set (saves scrolling through months of the calender for every entry)
Currently this is how I’d run this page:
<h2>Saturday</h2>
<p>{exp:channel:entries channel='events' search:evnt_date="Saturday"}<br />
</p><h3>{title}</h3>
<p> {evnt_info}...<br />
{/exp:channel:entries}</p>
<h2>Sunday</h2>
<p>{exp:channel:entries channel='events' search:evnt_date="Sunday"}<br />
</p><h3>{title}</h3>
<p> {evnt_info}...<br />
{/exp:channel:entries}</p>
<h2>Monday</h2>
<p>{exp:channel:entries channel='events' search:evnt_date="Monday"}<br />
</p><h3>{title}</h3>
<p> {evnt_info}...<br />
{/exp:channel:entries}</p>
<p><br />
etc…...because it is only the entries that would need to be dynamic here, but to keep this scalable I’d like to be able to run this a simpler way.
I’m just thinking there must be a better, more efficient way to display this information.
If categories are required that could also be an option, I haven’t been able to figure this one out.
Thanks