Results 1 to 5 of 5

Thread: Disable vCard Download

  1. #1
    nunoxyz is offline Member
    Join Date
    Jul 2011
    Posts
    7

    Default Disable vCard Download

    I there i'm using Sugar CRM 6.2.1 CE and i need to remove the vCard download in contacts, looking around the foruns i found for version 5.5.x but the method does not apply....

    Sorry about the english....

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Disable vCard Download

    If you want to disable it across the board, just add the following to a new file in the custom/include/SugarFields/Fields/Fullname/ directory named DetailView.tpl:

    Code:
    {if strlen({{sugarvar key='value' string=true}}) <= 0}
    {assign var="value" value={{sugarvar key='default_value' string=true}} }
    {else}
    {assign var="value" value={{sugarvar key='value' string=true}} }
    {/if}
    <span id='{{sugarvar key='name'}}'>{{sugarvar key='value'}}</span>
    {{if !empty($displayParams.enableConnectors)}}
    {if !empty($value)}
    {{sugarvar_connector view='DetailView'}}
    {/if}
    {{/if}}
    If you want to update it for just that one field, you could instead add the 'customCode' attribute to the full_name field in the detailviewdefs.php for the module as shown:

    PHP Code:
    'customCode' => '{$fields.full_name.value}'

  3. #3
    York is offline Junior Member
    Join Date
    Sep 2011
    Posts
    5

    Default Re: Disable vCard Download

    Thank you for your hints jmertic but on my version of sugar (6.3.0RC2) they unfortunately do not work.

    The directory "custom/include/" isn't accessible through my ftp client and adding

    'customCode' => '{$fields.full_name.value}',

    to the detailviewdefs.php has no effect.

    I haven't the slightest clue how to disable the vcard button, maybe you have a solution?

    Thanks in advance

    York

  4. #4
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Disable vCard Download

    Quote Originally Posted by York View Post
    Thank you for your hints jmertic but on my version of sugar (6.3.0RC2) they unfortunately do not work.

    The directory "custom/include/" isn't accessible through my ftp client and adding

    'customCode' => '{$fields.full_name.value}',

    to the detailviewdefs.php has no effect.

    I haven't the slightest clue how to disable the vcard button, maybe you have a solution?

    Thanks in advance

    York
    You'll need to add this directory and file, and you'll need to do a Quick Repair and Rebuild to have changes take effect.
    John Mertic
    Sugar Community Manager

  5. #5
    York is offline Junior Member
    Join Date
    Sep 2011
    Posts
    5

    Default Re: Disable vCard Download

    Oh! Didn’t realize that it is as simple as that! I was a little bit confused about the fact that the directory /custom/include/ already exist and was not accessible thus I didn’t know whether it is necessary nor did I know anything about its contents! But renaming it (the only possible command with my ftp client) solved this problem.

    Thanks once more!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vcard
    By shafique in forum Help
    Replies: 18
    Last Post: 2009-05-12, 04:24 AM
  2. The Use Of vCard
    By shafique in forum Developer Help
    Replies: 0
    Last Post: 2009-04-17, 01:47 PM
  3. Need to disable the "vCard Button"
    By Mag in forum General Discussion
    Replies: 4
    Last Post: 2008-09-22, 02:08 PM
  4. vCard and IE 6
    By mekozloski in forum Help
    Replies: 0
    Last Post: 2005-05-11, 05:10 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
  •