Results 1 to 5 of 5

Thread: how edit one little thing of menu "recents"

  1. #1
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Question how edit one little thing of menu "recents"

    hello sugar developers
    I need to change one thing of this menu, but I do not find the way to do this...I will explain myself in the image attached
    Thanks so much
    Attached Images Attached Images  

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

    Default Re: how edit one little thing of menu "recents"

    Hello,

    If it is a custom module you can write the following piece of code in <YOURMODULE>.php

    PHP Code:
    function get_summary_text()
        {
            return 
    "$this-><YOURFIELDNAME>";
        } 
    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
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Default Re: how edit one little thing of menu "recents"

    Wow!! This works!! Thanks so much davidboris

  4. #4
    pbel is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    18

    Default Re: how edit one little thing of menu "recents"

    Hi.

    Yes it works: added to modules/Contacts/Contact.php the following:
    function get_summary_text()
    {
    return "$this->first_name $this->last_name ($this->account_name)";
    }
    And it generally works (I know that is not upgrade safe, but puting a new Contact.php to custom/modules/Contacts/Contact.php somehow didn't worked - will check later). But my problem is, that this is not limiting the lenght of the the output entry. Something limits the output to 15 characters. Couldn't find it so far. Is this somewhere in the theme?

    Regards
    Petr

  5. #5
    pbel is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    18

    Default Re: how edit one little thing of menu "recents"

    Quote Originally Posted by pbel View Post
    Hi.

    Yes it works: added to modules/Contacts/Contact.php the following:
    function get_summary_text()
    {
    return "$this->first_name $this->last_name ($this->account_name)";
    }
    And it generally works (I know that is not upgrade safe, but puting a new Contact.php to custom/modules/Contacts/Contact.php somehow didn't worked - will check later). But my problem is, that this is not limiting the lenght of the the output entry. Something limits the output to 15 characters. Couldn't find it so far. Is this somewhere in the theme?

    Regards
    Petr
    Sometimes the answer comes while writing: 'tracker_max_display_length' => 15, in config.php ist the parameter to change. Funny is that in utils.php it says :
    * getTrackerSubstring
    *
    * Returns a [number]-char or less string for the Tracker to display in the header
    * based on the tracker_max_display_length setting in config.php. If not set,
    * or invalid length, then defaults to 15 for COM editions, 30 for others.

    So it looks that Pro editions comes with characters as default....

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2009-12-18, 05:52 PM
  2. Replies: 4
    Last Post: 2009-03-26, 04:57 AM
  3. Customize this "e-mail" thing...
    By Mr.X in forum Developer Help
    Replies: 8
    Last Post: 2009-02-27, 11:11 AM
  4. Replies: 2
    Last Post: 2006-12-15, 03:00 PM
  5. Changing "Edit" to "filter" for Dashboard and Calendar
    By nexweb in forum Feature Requests
    Replies: 1
    Last Post: 2005-10-28, 07:59 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
  •