- Posts: 22
- Thank you received: 4
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You found it before i answer
BTW, where do I control how many events are listed per page on the event list page?
Edit: Never mind, found it in the menu options
So, the event layout for list is for each event.I've managed to create my custom theme and it was pretty easy, however I haven't been able to get the month names configured to show up between the rows.
$array_months = array();
$array_years = array();
$event_m = JHtml::date($evt, 'F', null);
$event_y = JHtml::date($evt, 'Y', null);
if ( ! in_array($event_m, $array_months)
&& ! in_array($event_y, $array_years))
{
$array_months[] = $event_m;
$array_years[] = $event_y;
echo '<div class="month-header">' . $event_m . '</div>';
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
$array_months = isset($array_months) ? $array_months : array();
$array_years = isset($array_years) ? $array_years : array();
$event_m = JHtml::date($evt, 'F', null);
$event_y = JHtml::date($evt, 'Y', null);
if ( ! in_array($event_m, $array_months)
&& ! in_array($event_y, $array_years))
{
$array_months[] = $event_m;
$array_years[] = $event_y;
echo '<div class="month-header">' . $event_m . '</div>';
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
$array_monthyear = isset($array_monthyear) ? $array_monthyear : array();
$event_m = JHtml::date($evt, 'F', null);
$event_y = JHtml::date($evt, 'Y', null);
if ( ! in_array($event_m . $event_y, $array_monthyear))
{
$array_monthyear[] = $event_m . $event_y;
echo '<div class="month-header"><h4>' . $event_m . '</h4></div>';
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.