Results 1 to 4 of 4

Thread: Targets in Target List sub-panel.

  1. #1
    jcanapa is offline Member
    Join Date
    Nov 2009
    Posts
    17

    Default Targets in Target List sub-panel.

    I am trying to change the list view of the Target sub-panel when looking at a Target List. Changing the list view of Targets works when searching for Targets, but it does not affect the Target List. Target List is also not listed as a module in the studio.

    Is there a way to edit how this is displayed?

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Targets in Target List sub-panel.

    goto admin>campaigns>subpanels>target list

  3. #3
    jcanapa is offline Member
    Join Date
    Nov 2009
    Posts
    17

    Default Re: Targets in Target List sub-panel.

    That's not quite it. When you look at a target list it gives you a list of targets assigned to that list with Name, Title, Email and Phone in the list view. I want to add more to this list view. Changing the list view under Targets only affects searching for Targets directly, not the short list when looking at a Target List.

  4. #4
    ysh's Avatar
    ysh
    ysh is offline Sugar Community Member
    Join Date
    Apr 2009
    Location
    Nice, France
    Posts
    91

    Default Re: Targets in Target List sub-panel.

    Hi

    Well, I also wanted to modify the Targets sub-panel that is present in TargetLists in order to view the column 'Account Name' in the list.

    So I looked at the the Prospectlists subpaneldefs file [/modules/ProspectLists/metadata/subpaneldefs.php] and noticed that with user and account subpanels definitions, the 'subpanel_name' was equal to 'ForProspectLists' and not 'default ' as was the case for the other subpanels.

    I therefore created a 'ForProspectLists' of my own, based on the original Prospects 'default' version - simply adding an account field definition to the mix.

    Here's the modified [/modules/ProspectLists/metadata/subpaneldefs.php]
    Code:
    'subpanel_setup' => array(
            'prospects' => array(
    			'order' => 10,
    			'sort_by' => 'last_name',
    			'sort_order' => 'asc',
    			'module' => 'Prospects',
    			'subpanel_name' => 'ForProspectLists',
    			'get_subpanel_data' => 'prospects',
    			'title_key' => 'LBL_PROSPECTS_SUBPANEL_TITLE',
    			'top_buttons' => array(
    			    array('widget_class' => 'SubPanelTopButtonQuickCreate'),
    				array('widget_class'=>'SubPanelTopSelectButton','mode'=>'MultiSelect'),
    (...)

    Here's the [/modules/Prospects/metadata/subpanels/ForProspectLists.php]

    Code:
    $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' => '25%',
                'sort_by' => 'last_name',
    		),
    		'title'=>array(
    		 	'vname' => 'LBL_LIST_TITLE',
    			'width' => '17%',
    		),
    		'account_name'=>array (
    			'type' => 'varchar',
    			'label' => 'LBL_ACCOUNT_NAME',
    			'width' => '25%',
    			'default' => true,
    		  ),
    		'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' => '4%',
    		),
    		'remove_button'=>array(
    			'vname' => 'LBL_REMOVE',
    			'widget_class' => 'SubPanelRemoveButton',
    		 	'module' => 'Contacts',
    			'width' => '4%',
    		),		
    	),
    );
    The only issue of course is that this modification isn't upgrade safe.
    If someone with more experience could point us in the right direction then this could become quite a useful update.

    yann
    JustHost Web Host / SCE 6.4.2 / MySQL 5.0.92 / Apache2 2.2.1.7 / php 5.2.17
    ____________________________________________
    www.azurtem.com - computer services - Nice, France

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2009-06-08, 12:57 PM
  2. Replies: 1
    Last Post: 2008-01-30, 02:48 PM
  3. How do I Import Targets into a Target List?
    By pnowakiris in forum Help
    Replies: 1
    Last Post: 2007-11-24, 09:53 AM
  4. Exporting Targets from Target List
    By Jirka in forum Marketing/Campaign Management
    Replies: 1
    Last Post: 2007-10-02, 04:47 PM
  5. Bug in adding Targets -> Target List
    By bkbonner in forum Help
    Replies: 1
    Last Post: 2006-02-01, 06:41 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
  •