Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Target Lists: Customize fields displayed in "Targets" sub-section

  1. #1
    Join Date
    Oct 2010
    Location
    Ohio
    Posts
    7

    Default Target Lists: Customize fields displayed in "Targets" sub-section

    Sugar Version: 6.0.2 (Build 4217)
    Sugar Edition: Community
    Category: Target List, Displaying Custom Fields
    Operating System: Mac OS X 10.6.4
    PHP Version: 5.3.2
    Database: MySQL 5.0.7-dev
    Web Server: Apache 2.2.14

    Steps to reproduce
    1. Select Campaigns > View Target Lists
    2. Click on a Target List
    3. Review the Targets sub-section

    Issue Presented
    By default, the Targets sub-section displays: Name, Title, Email and Phone. I'd like to be able to display other fields (i.e., Account).

    In reviewing Administration > Studio > Targets > Layouts, I can't find the layout which controls the display of the Targets sub-section.

    Please advise. Thanks.

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Target Lists: Customize fields displayed in "Targets" sub-section

    Hello,

    Yes, you are right. The subpanel is not appearing in Studio. But yes, you can override current subpanel by adding some lines of code. If you are a developer or know PHP a bit here is a quick code snippet.

    Create a file under > custom/Extension/modules/ProspectLists/Ext/Layoutdefs/<ANYNAME>.php

    Paste code as under

    PHP Code:
    $layout_defs['ProspectLists']['subpanel_setup']['prospects']['override_subpanel_name'] = 'Prospectdefault'
    Create a file in > custom/modules/Prospects/metadata/subpanels/Prospectdefault.php

    Paste code from modules/Prospects/metadata/subpanels/default.php, and change the fields from that file, like remove the fields you dont want or add new ones.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    Join Date
    Oct 2010
    Location
    Ohio
    Posts
    7

    Default Re: Target Lists: Customize fields displayed in "Targets" sub-section

    This doesn't seem to have any affect (for good or bad; I haven't broken anything, yet ;-)

    I created the following file (and the necessary directories) ...
    /custom/Extension/modules/ProspectLists/Ext/Layoutdefs/overrides.php

    ... which contains the following code:
    Code:
    $layout_defs['ProspectLists']['subpanel_setup']['prospects']['override_subpanel_name'] = 'Prospectdefault';
    I then created Prospectdefault.php in ...
    /custom/modules/Prospects/metadata/

    ... which contains altered code, using the following as source:
    /modules/Prospects/metadata/subpanels/default.php

    Did I get the paths right?

  4. #4
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Target Lists: Customize fields displayed in "Targets" sub-section

    Hello,
    /custom/Extension/modules/ProspectLists/Ext/Layoutdefs/overrides.php
    write a code in php tag.
    and then Repair Extenstion through : admin->Repairs->QuickRepair and Rebuild.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  5. #5
    Join Date
    Oct 2010
    Location
    Ohio
    Posts
    7

    Default Re: Target Lists: Customize fields displayed in "Targets" sub-section

    The source of overrides.php now reads ...
    Code:
    $layout_defs['ProspectLists']['subpanel_setup']['prospects']['override_subpanel_name'] = 'Prospectdefault';
    <?php echo "overrides.php line 2"; ?>
    ... and when using a browser to view ...
    /index.php?module=ProspectLists&action=DetailView

    ... I can see "overrides.php line 2" echoed six times, however, I don't see any change to the Targets sub-section.

  6. #6
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Target Lists: Customize fields displayed in "Targets" sub-section

    Hello,

    I think you didn't get my point.
    I want to say write a code exactly given below.
    PHP Code:
    <?php

    $layout_defs
    ['ProspectLists']['subpanel_setup']['prospects']['override_subpanel_name'] = 'Prospectdefault';

    ?>
    then do quick repair & rebuild.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  7. #7
    Join Date
    Oct 2010
    Location
    Ohio
    Posts
    7

    Default Re: Target Lists: Customize fields displayed in "Targets" sub-section

    D-OH! Here's what I have now for overrides.php:
    Code:
    <?php
    $layout_defs['ProspectLists']['subpanel_setup']['prospects']['override_subpanel_name'] = 'Prospectdefault';
    echo "overrides.php line 3";
    ?>
    The output after repairing is:

    Clearing Vardefs from cache...done
    Clearing language files from cache...done
    Clearing Template files from cache...done
    Clearing JS files from cache...done
    Clearing Vardefs from cache...done
    Clearing JS Language files from cache...done
    Clearing language files from cache...done
    Clearing Sugar Dashlet files from cache...done
    Clearing Sugar Feed Cache...done
    Clearing Smarty templates from cache...done
    Clearing Theme Cache...done
    Clearing XML files from cache...done
    Clearing Unified Search Cache...done
    Rebuilding Extensions...
    Rebuilding Modules...
    Rebuilding Language...en_us
    Rebuilding Vardefs...
    Rebuilding Layoutdefs...
    Rebuilding Menus...
    Rebuilding DC Actions...
    Rebuilding User Page Section...
    Rebuilding administration Section...
    Rebuilding RelationshipsRebuilding administration Section...
    Updating the admin warning message...
    Rebuilding Audit Tables...
    ACLAction not Audit Enabled...
    ACLRole not Audit Enabled...
    Relationship not Audit Enabled...
    Audit table for Leads already exists. skipping...
    Audit table for Cases already exists. skipping...
    Audit table for Bugs already exists. skipping...
    User not Audit Enabled...
    CampaignLog not Audit Enabled...
    Project not Audit Enabled...
    Audit table for ProjectTasks already exists. skipping...
    Audit table for Campaigns already exists. skipping...
    ProspectList not Audit Enabled...
    Prospect not Audit Enabled...
    EmailMarketing not Audit Enabled...
    CampaignTracker not Audit Enabled...
    Release not Audit Enabled...
    EmailMan not Audit Enabled...
    schedulers not Audit Enabled...
    SchedulersJob not Audit Enabled...
    Audit table for Contacts already exists. skipping...
    Audit table for Accounts already exists. skipping...
    Audit table for Opportunitys already exists. skipping...
    EmailTemplate not Audit Enabled...
    Note not Audit Enabled...
    Call not Audit Enabled...
    Email not Audit Enabled...
    Meeting not Audit Enabled...
    Task not Audit Enabled...
    User not Audit Enabled...
    Employee not Audit Enabled...
    Currency not Audit Enabled...
    Tracker not Audit Enabled...
    ImportMap not Audit Enabled...
    UsersLastImport not Audit Enabled...
    Administration not Audit Enabled...
    UpgradeHistory not Audit Enabled...
    vCal not Audit Enabled...
    Version not Audit Enabled...
    Role not Audit Enabled...
    Document not Audit Enabled...
    DocumentRevision not Audit Enabled...
    FieldsMetaData not Audit Enabled...
    InboundEmail not Audit Enabled...
    SavedSearch not Audit Enabled...
    UserPreference not Audit Enabled...
    MergeRecord not Audit Enabled...
    EmailAddress not Audit Enabled...
    SugarFeed not Audit Enabled...
    Done
    Database tables are synced with vardefs


    I'm still not seeing any changes.
    Last edited by Dan K. Snelson; 2010-10-25 at 07:10 PM. Reason: typo

  8. #8
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Target Lists: Customize fields displayed in "Targets" sub-section

    Hello,

    Remove the echo line, it is really taking the file you want your sugar to take. Just attach the file Prospectsdefault.php here, so that I can review and tell you the required changes.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  9. #9
    Join Date
    Oct 2010
    Location
    Ohio
    Posts
    7

    Default Re: Target Lists: Customize fields displayed in "Targets" sub-section

    The overrides.php file now reads:
    PHP Code:
    <?php $layout_defs['ProspectLists']['subpanel_setup']['prospects']['override_subpanel_name'] = 'Prospectdefault'?>
    Please see the attached Prospectdefault.php file. Thanks.
    Attached Files Attached Files

  10. #10
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Target Lists: Customize fields displayed in "Targets" sub-section

    Hello,

    I tried exactly your file and it did hide he remove button for me, echoed the string you specified at line # 93. So the only thing you might be missing is, Admin > Repair > Quick Repair and Rebuild.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2010-06-28, 09:02 AM
  2. Replies: 3
    Last Post: 2008-04-09, 02:54 AM
  3. Replies: 1
    Last Post: 2008-02-08, 03:13 PM
  4. Targets/target lists on the fly
    By jody in forum Feature Requests
    Replies: 7
    Last Post: 2008-01-18, 04:03 PM
  5. Replies: 2
    Last Post: 2006-12-15, 03:00 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
  •