List view of target module is not link name.

We want to make a href on Name at Target module list view. how to make it.

Parents
  • I suppose your Targets (Prospects) module had been customized somehow once the field name is a link by default.

    Make sure the field "name" at file custom/modules/Prospects/clients/base/views/list/list.php looks like that:

    array(
    'name' => 'name',
    'type' => 'fullname',
    'fields' => array(
    'salutation',
    'first_name',
    'last_name',
    ),
    'link' => true,
    'css_class' => 'full-name',
    'label' => 'LBL_LIST_NAME',
    'enabled' => true,
    'default' => true,
    ),

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • Thanks. It is working.

    I have one more question -

    I created a custom field "Status" in Target module with options such as "Converted", "Disqualified","Active".

    We want to hide Converted option as Lead module status. Once target is converted then only it should be visible. Please tell me how to achieve this feature. 

Reply Children
  • Let me make sure I got the point.

    You would like to hide any Target which has been converted to Lead?

    I can seee 2 possibiliies:

    Configure a logic_hook after_save on Targets which mark it as deleted once converted to Lead or

    Create a custom filter api (CustomProspectsFilterApi.php) the way you inject a hardcoded filter which ignores Converted Targets:

    $additionalFilters = [
     'status_c' => ['$not_in' => 'Converted']
    ];

    André Lopes
    Lampada Global
    Skype: andre.lampada