Results 1 to 5 of 5

Thread: HOWTO create module/subpanel similar to activities

  1. #1
    velocitygirl is offline Sugar Community Member
    Join Date
    Jan 2006
    Location
    Berlin, Germany
    Posts
    21

    Question HOWTO create module/subpanel similar to activities

    Hi there,
    I'd need to develop a container module (like 'activities') that can be displayed as a subpanel under accounts. It is supposed to contain technical details of the single accounts. I want to have this subpanel viewing the different types of technical details (which are all single modules) and I'd need 'create' buttons for every sub module.
    Could anyone give me advice how to start and which files will be affected? I started copying the activities module and adjusting it, but it doesn't work at the moment since I don't know if this is the right way at all.

    I'll be grateful for any advice at all.
    Thanks & Rgds,
    Mandy

  2. #2
    sylvaindoc is offline Sugar Community Member
    Join Date
    Mar 2006
    Posts
    34

    Default Re: HOWTO create module/subpanel similar to activities

    Hey ya,
    here are to interesting threads for your problems think:
    about creating new module
    about subpanel
    I've tested only the subpanel stuff, it's easy and works fine.
    Sylvain

  3. #3
    paikmoses's Avatar
    paikmoses is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    541

    Default Re: HOWTO create module/subpanel similar to activities

    Hi Mandy,

    You can follow the steps below to create a new module in Sugar:
    1. Open index.php, you can find this file here –

    /SugarSuite-Full-4.0.1/index.php

    2. Then add the module name under $app_list_strings[’record_type_module’]

    $app_list_strings[’record_type_module’] = array(
    ‘Contact’ =’Contacts’,
    ‘Account’ = ‘Accounts’,
    ‘Opportunity’='Opportunities’,
    ‘Case’ =’Cases’,
    ‘Note’ =’Notes’,
    ‘Call’ =’Calls’,
    ‘Email’ =’Emails’,
    ‘Meeting’='Meetings’,
    ‘Task’ =’Tasks’,
    ‘Lead’ =’Leads’,
    ‘Bug’ =’Bugs’,
    ‘Contract’=’ Contract ‘, (I am Adding Contract as new module)
    );

    3. Then open next file called modules.php, you can find this file here

    /SugarSuite-Full-4.0.1/include/modules.php

    More here http://sugarcrm.openapp.org/?p=14

    Create the sub-panel here http://sugarcrm.openapp.org/?p=94

    Do let me know how far it worked.

    Regards,

  4. #4
    velocitygirl is offline Sugar Community Member
    Join Date
    Jan 2006
    Location
    Berlin, Germany
    Posts
    21

    Default Re: HOWTO create module/subpanel similar to activities

    Hi,
    I already had a look at those. I already developed a few modules, so I don't have a problem with that. I just thought that the subpanel I need to develop is not a real module with own functionality - it's probably just a container for other modules.
    But maybe I'll take a closer look again at the subpanel tutorial.

    Many thanks,
    Mandy

  5. #5
    velocitygirl is offline Sugar Community Member
    Join Date
    Jan 2006
    Location
    Berlin, Germany
    Posts
    21

    Question Re: HOWTO create module/subpanel similar to activities

    Hi,
    thanks for your advice (see quote below).
    I got the subpanel 'TechnicalDetails' showing up in 'Accounts' as I wished...but it doesn't view any data. I think it's a relationship issue but I am not quite sure how to get this problem fixed.
    The subpanel that gets viewed is only a container and like 'Activities' doesn't have a database table. I am trying to figure out how to get the data of two other modules (Domains and Hosting) being viewed in my new subpanel and which files I need to adjust. I created 2 metaData files domain_accountMetaData.php and hosting_accountsMetaData.php, but do I maybe need an account_technicaldetails-relation file, too??? Maybe someone could just explain how the whole 'Activities' module works with its relations to other mdoules like notes or meetings and that might help to get my problem sorted????

    Thanks very much,
    Mandy


    Quote Originally Posted by paikmoses
    Hi Mandy,

    You can follow the steps below to create a new module in Sugar:
    1. Open index.php, you can find this file here –

    /SugarSuite-Full-4.0.1/index.php

    2. Then add the module name under $app_list_strings[’record_type_module’]

    $app_list_strings[’record_type_module’] = array(
    ‘Contact’ =’Contacts’,
    ‘Account’ = ‘Accounts’,
    ‘Opportunity’='Opportunities’,
    ‘Case’ =’Cases’,
    ‘Note’ =’Notes’,
    ‘Call’ =’Calls’,
    ‘Email’ =’Emails’,
    ‘Meeting’='Meetings’,
    ‘Task’ =’Tasks’,
    ‘Lead’ =’Leads’,
    ‘Bug’ =’Bugs’,
    ‘Contract’=’ Contract ‘, (I am Adding Contract as new module)
    );

    3. Then open next file called modules.php, you can find this file here

    /SugarSuite-Full-4.0.1/include/modules.php

    More here http://sugarcrm.openapp.org/?p=14

    Create the sub-panel here http://sugarcrm.openapp.org/?p=94

    Do let me know how far it worked.

    Regards,

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
  •