Results 1 to 7 of 7

Thread: Custom extension/library for SugarCRM

  1. #1
    solid's Avatar
    solid is offline Sugar Community Member
    Join Date
    May 2010
    Location
    Canada
    Posts
    35

    Default Custom extension/library for SugarCRM

    Hi!

    I would like to have in Sugar a custom extension/library/plug-in for particular functions that could be used by one or more modules, say a weight conversion library.

    How could I integrate such a thing in Sugar while keeping it upgrade-safe?

    Thanks.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom extension/library for SugarCRM

    Yes, you can do that.

    You just have to implement into controller, views or logic hooks the trigers for the functions according to your needs.

    Let us know in detail what are you going to implement.

    Kind regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    solid's Avatar
    solid is offline Sugar Community Member
    Join Date
    May 2010
    Location
    Canada
    Posts
    35

    Default Re: Custom extension/library for SugarCRM

    Quote Originally Posted by andopes View Post
    Yes, you can do that.

    You just have to implement into controller, views or logic hooks the trigers for the functions according to your needs.

    Let us know in detail what are you going to implement.

    Kind regards
    Hi!

    Thanks for your answer.

    Actually, we have a separate directory completely outside Sugar (in /var/html/crm) to store functions used by different modules (custom and native). For example, we have a file weightConverter.php with a function to convert a weight into another unit.

    However, I would like to put all code into the Sugar directory, in a upgrade-safe way of course. I read on the forum, I read in the book "The Definitive Guide to SugarCRM" from John Mertic, but I can't find a place where to put simple code, not whole modules, to do particular tasks needed in our business process.

    We already use the code in the external directory into controller and views of Sugar. That is not a problem. As I say, I would like, and think it would be more logic, to put all code into Sugar directory.

    If you need more details, please ask.

    Thanks.

    Best regards.

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom extension/library for SugarCRM

    You can put the code into custom/include/utils folder. Obviously you have to create these folder if they don´t exist.
    There is no a definitive role regarding where to put generic and custom functions, but it is a good idea to put them in an intuitive folder.

    So you can invoke these functions from controllers, views and logic_hooks.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    solid's Avatar
    solid is offline Sugar Community Member
    Join Date
    May 2010
    Location
    Canada
    Posts
    35

    Default Re: Custom extension/library for SugarCRM

    Quote Originally Posted by andopes View Post
    You can put the code into custom/include/utils folder. Obviously you have to create these folder if they don´t exist.
    There is no a definitive role regarding where to put generic and custom functions, but it is a good idea to put them in an intuitive folder.

    So you can invoke these functions from controllers, views and logic_hooks.

    Cheers
    Hi!

    Thanks for your answer.

    I already have the /custom/include folder. I just need to add a /utils folder. We already had a tree of folder. It will be easy to just tranfer it in the /utils folder.

    Correct me if I'm wrong, but in the /custom folder, we can put almost anything? I know from my boss that this folder is upgrade-safe, so it fit perfectly into my needs.

    Best regards,

  6. #6
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom extension/library for SugarCRM

    Hi Solid

    You have got the point!
    You definitely can put into custom folder almost anything!



    Kind regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  7. #7
    solid's Avatar
    solid is offline Sugar Community Member
    Join Date
    May 2010
    Location
    Canada
    Posts
    35

    Default Re: Custom extension/library for SugarCRM

    Quote Originally Posted by andopes View Post
    Hi Solid

    You have got the point!
    You definitely can put into custom folder almost anything!



    Kind regards
    Thank you very much!

    That solve my problem!

    Best regards,

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 2011-01-03, 02:01 PM
  2. Can't find custom/Extension/modules/Accounts
    By dangeorge6 in forum Help
    Replies: 1
    Last Post: 2009-09-30, 07:31 PM
  3. Link to Project Tasks from custom Extension
    By Raven24 in forum Developer Help
    Replies: 1
    Last Post: 2008-11-21, 07:52 PM
  4. /Sugarcrm Extension
    By rover in forum General Discussion
    Replies: 0
    Last Post: 2006-11-01, 11:20 AM
  5. Sugarcrm and CURL library
    By kens in forum Developer Help
    Replies: 2
    Last Post: 2006-03-09, 02:19 AM

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
  •