AnsweredAssumed Answered

Styling field display in subpannel

Question asked by swann on Nov 18, 2015
Latest reply on Nov 18, 2015 by Dhaivat Naik

Hello guys,

 

In my contact, I have created a custome field : linkedin URL profile. It's perfect but it take lot of space on the subpannel of Account. So I would like to replace the URL text by a simple static image (linkedin icon). I've tryed the customCode hack but it doesn't work and still display the complete URL.

 

I've edited the following file : custom/modules/Contacts/metadata/subpanels/Account_subpanel_contacts.php

 

Initially it was :

'linkedin_c' =>   array (     'type' => 'url',     'default' => true,     'vname' => 'LBL_LINKEDIN',     'width' => '35%',   ),

 

I've updated it for :

'linkedin_c' =>   array (     //'type' => 'url',     //'default' => true,     'default' => false,     'vname' => 'LBL_LINKEDIN',     'width' => '1%',     //'customCode' => '{$fields.linkedin_c.value}',     'customCode' => ',   ),

 

The size of the TD was changed but the URL was still displayed.

Any idea of what I should do to get my linkedin icon ?

 

Thank you for all your help

Swann

Outcomes