Admin control over calendar viewmode Posted by bjohnson 29 Apr 2005 19:24 UTC 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)
Posted by Gary 29 Apr 2005 20:09 UTC > 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.
Posted by bjohnson 29 Apr 2005 20:27 UTC 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
Posted by bjohnson 04 May 2005 18:52 UTC it also looks like you can modify the url to include the viewmode argumanet to the menu item by using the admin, menus screens