Results 1 to 3 of 3

Thread: changing icons in "Activities subpanel"

  1. #1
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default changing icons in "Activities subpanel"

    Hi all

    I would like to change the icons shown in the activities subpanel in the contacts or accouts DetailView.

    I mean, for a Contact or an account record, in the DetailView, you can see that (in the "History of Activities" subpanel) next to the call or meeting or task record created and related to the contact or accout, there is an icon that identifies the type of record (phone icon, meeting icon, task icon...) but I would like to add more icons to better identify the type of call (Inbound, outbound, webinar....)

    I mean if is possible to modify this icon for a call record (phone icon) depending on the type selected for this call record?, if so could you please point me how to do it?

    Cheers!!!

  2. #2
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: changing icons in "Activities subpanel"

    Hi there.... is not possible to achieve this change based on the "Call type"?

    Thanks a lot!!

  3. #3
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: changing icons in "Activities subpanel"

    Hi again

    Sorry to recover this issue, but is there any way to tell the SugarWidget which icon to show for Calls history subpanel depending on the Call direction.

    I have reviewed the ForActivites.php file in custom\modules\Calls\metadata\subpanels and included this code:

    PHP Code:
    $tipo_llamada $this->bean->direction;

    switch (
    $tipo_llamada)
    {
        case 
    '1to1'$icono '/themes/default/images/1to1.gif'; break;
        case 
    'inbound'$icono '/themes/default/images/call_in.gif'; break;
        case 
    'outbound'$icono '/themes/default/images/call_out.gif'; break;
        case 
    'selection'$icono '/themes/default/images/selection.gif'; break;
        default: 
    $icono '/themes/default/images/call_in.gif'; break;
    }


    $subpanel_layout = array(
        
    //Removed button because this layout def is a component of
        //the activities sub-panel.
        //'where' => "(calls.status=\'Planned\')",
        
    'where' => "(calls.status != 'Held' AND calls.status != 'Not Held')",
        
        
        
    'list_fields' => array(
            
    'object_image'=>array(
                
    'vname' => 'LBL_OBJECT_IMAGE',
                
    'widget_class' => $icono,
                  
    'width' => '2%',
            ), 
    However is not working.... any suggestions please??

    Thanks a lot

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2010-11-18, 05:10 PM
  2. Replies: 4
    Last Post: 2009-12-18, 05:52 PM
  3. Replies: 2
    Last Post: 2009-02-26, 05:55 PM
  4. Replies: 0
    Last Post: 2007-01-12, 11:35 PM
  5. Changing "Edit" to "filter" for Dashboard and Calendar
    By nexweb in forum Feature Requests
    Replies: 1
    Last Post: 2005-10-28, 07:59 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
  •