Results 1 to 3 of 3

Thread: Adding in new Module items to Activities Subpanel / Relationships

  1. #1
    leenwebb is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    New Hampshire
    Posts
    77

    Default Adding in new Module items to Activities Subpanel / Relationships

    Hi Sugarers,
    I've created a custom module in my Sugar 4.5.0e called "Letters". I based it on the "Meetings" module, and it's pretty simple and works just fine on its own. Now I'd like to create a relationship between the Letters_cstm.contact_id field and Contact.id. My eventual goal is to add Letters into the Activities Subpanel, so that when I look at a contact, I can see any calls/meetings/letters/tasks/etc right there in the subpanel.

    So far I have had no luck at all. Here's what I've done:

    • created metadata/letters_contactsMetaData.php. I just duplicated the meetings_contacts file and changed all the meeting references to letters.
    • added a reference to the above file into Modules/TableDictionary.php
    • repaired Relationships. I added the letters_contacts table (including indices) manually.


    I assume I need to add something to the vardefs file, but what? And where -- just the Contacts/vardefs.php, or do I need to do Letters/vardefs.php as well? Or am I totally on the wrong track? I saw a mention in a forum post of a Ken Brill relationship "walkthrough" but wasn't able to find anything beyond basic file descriptions.

    Any advice would be much appreciated --

    Eileen

  2. #2
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Adding in new Module items to Activities Subpanel / Relationships

    Hi,

    There are very helpful Wiki articles for this sort of customization.
    http://www.sugarcrm.com/wiki/index.php?title=Subpanels
    http://www.sugarcrm.com/wiki/index.p...nels_Explained
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  3. #3
    leenwebb is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    New Hampshire
    Posts
    77

    Default Re: Adding in new Module items to Activities Subpanel / Relationships

    Thanks for the reply.

    I had seen these and still wasn't able to get my relationship working. I think these articles are in the family of tech info where if you can understand the article right away, you probably don't need it. I'm in the other camp -- I need the help, and they're full of descriptive (but not instructive) information.

    Does anyone know of any instructive (step-by-step, or even anecdotal) information about creating new relationships?

    Thanks
    Eileen

Thread Information

Users Browsing this Thread

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

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
  •