Hi there,
I have a website that, amongst other things, promotes some training courses. One of the key fields for this particular weblog is the one for dates. It is a Multi-text field with two columns (location and date).
So periodically I have to go in an edit the training course pages to add new dates and locations as they are scheduled.
Currently, the live training page lists all the courses in a table, with the course code in column 1, title in column 2, and then all the dates in column 3.
<table id="mytable" cellspacing="0" summary="Training Course Schedule">
<caption>Course Summaries - click course title for more information</caption>
<tr>
<th scope="col" abbr="Code" class="code">ID</th>
<th scope="col" abbr="Title" class="tctitle">Course Title</th>
<th scope="col" abbr="Date" class="tcdate">Dates</th>
</tr>
{exp:weblog:entries weblog="{my_weblog}" disable="categories|member_data|pagination|trackbacks" orderby="course_code" sort="asc"}
<tr>
<td class="right">{course_code}</td>
<td class="title"><a href="http://{path=" title="View {title} course details">{title}</a></td>
{if course_dates!=""}
<td>{course_dates}{col_2}
{/course_dates}</td>
{if:else}
<td>No Dates</td>
{/if}
</tr>
{/exp:weblog:entries}
</table>All this works fine, although - as we’ve started offering more dates for the more popular courses, it’s starting to look a bit long and untidy for these entries.
I was wondering, is it possible to display only one entry of this course_date {col_2} value?
I should add that this website was not built by me, and so none of this code is mine, and so although I follow most of it (kind of) - my attempts to display only the first date for a course has not been very successful this far - hence my call for help.
Cheers, Jay