Results 1 to 2 of 2

Thread: Add acoount name field to Target Lists' Targets

  1. #1
    hostec is offline Junior Member
    Join Date
    Jul 2010
    Posts
    1

    Default Add acoount name field to Target Lists' Targets

    Hi there,

    I am administrator to our sugar account. I was trying to add an extra field under Campaign->Target Lists->Targets but couldn't. I have tried changing List View in under Studio->Targets->Layouts->List View, it does added the field I want but not where I was it to add. It appears in Target List under Targets:Home.

    Can anyone help with this? Where should I look at to change layout for "Campaign->Target Lists->Targets"?

  2. #2
    smac is offline Member
    Join Date
    Jun 2010
    Posts
    17

    Default Re: Add acoount name field to Target Lists' Targets

    Hi hostec,

    I just dealt with this same problem yesterday.
    Ordinarily you would go to the targetList module in studio. Go to the subpanel called targets and add the account name field

    However for some unknown reason targetLists are not a module you can edit through studio.

    I resolved the problem by creating the following folder structure in the custom directory :
    custom/modules/Prospects/metadata/subpanels

    In there I added a file called ProspectListdefault.php which holds the fields I want displayed in my subpanel (I've pasted in the file below)

    Now go to
    /var/www/virtual/crm-55/custom/modules/ProspectLists/Ext/Layoutdefs/layoutdefs.ext.php
    and add the following line:

    $layout_defs['ProspectLists']['subpanel_setup']['Prospects']['override_subpanel_name'] = 'ProspectListdefault';

    a bit long winded but its upgrade safe at least....



    $subpanel_layout = array(
    'top_buttons' => array(
    array('widget_class'=>'SubPanelTopCreateButton'),
    array('widget_class'=>'SubPanelTopSelectButton'),
    ),

    'where' => '',


    'list_fields'=> array(
    'first_name' => array(
    'usage' => 'query_only',
    ),
    'last_name' => array(
    'usage' => 'query_only',
    ),
    'full_name'=>array(
    'vname' => 'LBL_LIST_NAME',
    'widget_class' => 'SubPanelDetailViewLink',
    'width' => '20%',
    'sort_by' => 'last_name',
    ),
    'title'=>array(
    'vname' => 'LBL_LIST_TITLE',
    'width' => '20%',
    ),
    'account_name'=>array(
    'vname' => 'LBL_ACCOUNT_NAME',
    'width' => '15%', ),
    'email1'=>array(
    'vname' => 'LBL_LIST_EMAIL_ADDRESS',
    'width' => '15%',
    'widget_class' => 'SubPanelEmailLink',
    ),
    'phone_work'=>array(
    'vname' => 'LBL_LIST_PHONE',
    'width' => '10%',
    ),
    'edit_button'=>array(
    'vname' => 'LBL_EDIT_BUTTON',
    'widget_class' => 'SubPanelEditButton',
    'module' => 'Contacts',
    'width' => '5%',
    ),
    'remove_button'=>array(
    'vname' => 'LBL_REMOVE',
    'widget_class' => 'SubPanelRemoveButton',
    'module' => 'Contacts',
    'width' => '5%',
    ),
    ),
    );
    ?>

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 2009-05-21, 10:29 AM
  2. Replies: 2
    Last Post: 2009-04-19, 10:25 PM
  3. Targets/target lists on the fly
    By jody in forum Feature Requests
    Replies: 7
    Last Post: 2008-01-18, 04:03 PM
  4. Replies: 1
    Last Post: 2007-04-17, 10:42 PM
  5. Bug in adding Targets -> Target List
    By bkbonner in forum Help
    Replies: 1
    Last Post: 2006-02-01, 06:41 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
  •