Results 1 to 4 of 4

Thread: Mass customization of Home screen

  1. #1
    duffy is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    31

    Default Mass customization of Home screen

    Hello,

    I would like to ask if it is possible to change some dashlets at home screen of all users? After upgrade to 5.2. new dashlets appeared automatically and I want to remove them and to change other dashlets settings for all users.

  2. #2
    crmbalah is offline A Prolific Poster
    Join Date
    Mar 2009
    Location
    chennai
    Posts
    418

    Default Re: Mass customization of Home screen

    Hi
    The home page have Add Dashlets button. Through this button you can customize the home page Dashlets.

  3. #3
    duffy is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    31

    Default Re: Mass customization of Home screen

    Hi,

    I know that, but what if I want to do it as admin, for all users...?

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Mass customization of Home screen

    Hi duffy

    Have a look on modules/Home/index.php
    SugarCRM retrieve the user dashlet definition from

    PHP Code:
    $pages $current_user->getPreference('pages''Home'); 
    $dashlets $current_user->getPreference('dashlets''Home'); 
    You just need to generate an array containing all pages and a new one containing all dashlets you want to make visible on Home Page for all users and set the preferences for all users:

    PHP Code:
        $current_user->setPreference('pages'$pages0'Home');
        
    $current_user->setPreference('dashlets'$dashlets0'Home'); 
    You need to foreach all users and set their preferences.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. home screen dashlets
    By Meyer in forum Help
    Replies: 1
    Last Post: 2009-04-20, 10:04 AM
  2. Blank Home Screen
    By Calmfield in forum Help
    Replies: 4
    Last Post: 2007-07-09, 02:21 AM
  3. home screen, modules, etc.
    By mrmmm in forum General Discussion
    Replies: 5
    Last Post: 2007-05-03, 11:56 AM
  4. Pipeline in home screen
    By cshort in forum Developer Help
    Replies: 2
    Last Post: 2006-04-12, 09:32 PM
  5. Home screen customization
    By dchapper in forum Help
    Replies: 2
    Last Post: 2005-04-03, 09:16 PM

Tags for this Thread

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
  •