Loading...
 
Skip to main content

Features / Usability


Admin control over calendar viewmode

Once you're in the calendar you can select how many days/week you want to view

Could there be a default view added so that an admin could preset the view (ie preset to monthly)

> Once you're in the calendar you can select how many days/week you want to view
>
> Could there be a default view added so that an admin could preset the view (ie preset to monthly)
>
>

I change the file tiki-calendar.php from

if (!isset($_SESSION['CalendarViewMode']) or !$_SESSION['CalendarViewMode']) {
$_SESSION['CalendarViewMode'] = 'week';
}

to

if (!isset($_SESSION['CalendarViewMode']) or !$_SESSION['CalendarViewMode']) {
$_SESSION['CalendarViewMode'] = 'month';
}

to get a default month calendar.


I took a different approach and changed templates/modules/mod-application_menu.tpl to


{if $feature_calendar eq 'y' and $tiki_p_view_calendar eq 'y'}
 Calendar{/tr}
{/if}


It would be much nicer if code edits weren't required

Some upgrade in the future will likely choke on these


it also looks like you can modify the url to include the viewmode argumanet to the menu item by using the admin, menus screens