I am so close to done i can taste it
but I have run into one other problem when trying to show tabular view of created pages, sorted by month. I have successfully coded the page to show the pages in the correct fashion, but every entry is including the month header and the column labels.
This is what I have used once for each month, so the page has 12 instances of this code I just showed October for example:
This is what I end up with:

How can I get the month and header row to show just once?

This is what I have used once for each month, so the page has 12 instances of this code I just showed October for example:
- Code: Select all
<cms:pages masterpage='sale_template.php' show_future_entries='1' limit='100' paginate='1' custom_field="sale_month==October | status==archive">
<th class="monthheader" valign="top" colspan="6"><strong>October 2014</strong></th>
<tr class="infoheader">
<td>Date</td>
<td>Time</td>
<td>Address</td>
<td>City</td>
<td>Map</td>
<td nowrap>Detailed Info</td>
</tr>
<cms:if k_paginated_top>
<cms:set current_column='1' />
</cms:if>
<cms:if current_column='1'>
<tr class="info">
</cms:if>
<cms:set start_month="<cms:date start_date format='F' />" />
<cms:set end_month="<cms:date end_date format='F' />" />
<td nowrap><cms:date start_date format='F j' />-<cms:if start_month=end_month><cms:date end_date format='j' />
<cms:else /><cms:date end_date format='F j' />
</cms:if>
</td>
<td nowrap> </td>
<td nowrap> </td>
<td><cms:show city /></td>
<td> </td>
<td><strong>Thank You!</strong></td>
<cms:set current_column='6' />
<cms:if current_column='6'>
</tr>
</cms:if>
<cms:if k_paginated_bottom>
<cms:if current_column lt max_columns>
<cms:repeat count="<cms:sub max_columns current_column />">
<td> </td>
</cms:repeat>
</tr>
</cms:if>
<cms:paginator />
</cms:if>
<cms:incr current_column />
<cms:if current_column gt max_columns >
<cms:set current_column='1' />
</cms:if>
</cms:pages>
This is what I end up with:

How can I get the month and header row to show just once?