Results 1 to 6 of 6

Thread: Calendar View

  1. #1
    sarkle is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    31

    Default Calendar View

    Is there a way to change the default calendar view to month rather than daily (and having to click month every time)? Thank you.

  2. #2
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Calendar View

    Hi

    You may need to modify a source code to do this, but it's very easy.
    Edit modules/Calendar/index.php, and change the line below around #49.
    PHP Code:
    if ( empty($_REQUEST['view']))
    {
    //    $_REQUEST['view'] = 'day';
        
    $_REQUEST['view'] = 'month';

    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  3. #3
    sarkle is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    31

    Default Re: Calendar View

    Thanks for the quick response, will do.

  4. #4
    sarkle is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    31

    Default Re: Calendar View

    Worked great. For any contributing developers reading this, what would be nice is rather than hard coding the default calendar view for the site is to have it local to the user. I myself prefer month view, others may prefer daily, weekly, etc. Nothing major, just an inconvenience if the default is not what you prefer.

  5. #5
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Calendar View

    I'm moving this thread to Open Source as Calendars is available in Sugar OS and this may be useful to Sugar OS users (who cannot access the Customer forum).

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  6. #6
    sc123 is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    45

    Default Re: Calendar View

    Quote Originally Posted by ruchida
    Hi

    You may need to modify a source code to do this, but it's very easy.
    Edit modules/Calendar/index.php, and change the line below around #49.
    PHP Code:
    if ( empty($_REQUEST['view']))
    {
    //    $_REQUEST['view'] = 'day';
        
    $_REQUEST['view'] = 'month';

    Thanks for this bit of info. It would be really great if this were a simple tick box in the settings somewhere!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2006-05-05, 07:33 PM
  2. Replies: 0
    Last Post: 2006-01-14, 04:23 PM
  3. time wrong in calendar view
    By tabsystems in forum Help
    Replies: 1
    Last Post: 2005-10-19, 02:54 AM
  4. Changing default calendar view in Home Page
    By smueller72 in forum Feature Requests
    Replies: 5
    Last Post: 2005-03-03, 04:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •