Results 1 to 5 of 5

Thread: A question about customizing the Accounts module.

  1. #1
    spectheintro is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    59

    Default A question about customizing the Accounts module.

    I need to add a whole bunch of custom fields to the Accounts module. (We're talking 30+.) As you can imagine, this makes the DetailView page rather busy. I originally created a custom module for these fields, which each account would link to, but the end-users said they would prefer that everything stay on the Accounts module, and so here I am.

    I've got no problem creating and implementing the custom fields, but I'd like a way to make it a bit cleaner. Is there any way to make certain sections of the Accounts display collapsible, or pop-up oriented? Rather than having 30+ ancillary custom fields right on the page, it would be great if there was a +/- button after all of the standard Account info that then expanded into the Ancillary fields, or (even better) an "Ancillaries" link that brought up a pop-up associated with the account, that had all of the Ancillary fields inside of it. I've already customized EditView.html to separate the fields into their own table (titled Ancillaries) but on DisplayView.html it's basically all lumped together.

    Can anyone tell me if what I'm trying to do is possible? 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: A question about customizing the Accounts module.

    Hi, spectheintro

    We have done some similar for a customer:

    Using the $focus you can get all custom field and them values in the accounts module.
    You can access this way: $custom_fields = $focus->custom_fields->getAvailableFields();

    By a foreach into this array you can access all custom fields and its values.
    You could write a dynamic table with all custom fields or studing the DynamicFields module whose generate the custom fields html dynamicly.
    We have done it too.

    This can be implemented into DetailView and EditView.
    You can still define a metadata with the order of fields to show.

    Cheers

    André Lopes
    Lâmpada Global Services
    Av. Angelica, 1814 cj. 1502
    São Paulo, SP 01228-200
    tel1. 55 11 3668-6776
    tel2. 55 11 3822-2581
    cel. 55 11 7636-5859
    messenger: andopes@yahoo.com.br
    skype: andopes
    e-mail: andre@lampadacrm.com.br

    Quote Originally Posted by spectheintro
    I need to add a whole bunch of custom fields to the Accounts module. (We're talking 30+.) As you can imagine, this makes the DetailView page rather busy. I originally created a custom module for these fields, which each account would link to, but the end-users said they would prefer that everything stay on the Accounts module, and so here I am.

    I've got no problem creating and implementing the custom fields, but I'd like a way to make it a bit cleaner. Is there any way to make certain sections of the Accounts display collapsible, or pop-up oriented? Rather than having 30+ ancillary custom fields right on the page, it would be great if there was a +/- button after all of the standard Account info that then expanded into the Ancillary fields, or (even better) an "Ancillaries" link that brought up a pop-up associated with the account, that had all of the Ancillary fields inside of it. I've already customized EditView.html to separate the fields into their own table (titled Ancillaries) but on DisplayView.html it's basically all lumped together.

    Can anyone tell me if what I'm trying to do is possible? Thanks.

  3. #3
    spectheintro is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    59

    Default Re: A question about customizing the Accounts module.

    Quote Originally Posted by andopes
    Hi, spectheintro

    We have done some similar for a customer:

    Using the $focus you can get all custom field and them values in the accounts module.
    You can access this way: $custom_fields = $focus->custom_fields->getAvailableFields();

    By a foreach into this array you can access all custom fields and its values.
    You could write a dynamic table with all custom fields or studing the DynamicFields module whose generate the custom fields html dynamicly.
    We have done it too.

    This can be implemented into DetailView and EditView.
    You can still define a metadata with the order of fields to show.
    Andre:

    Thank you for your response. Would you mind posting an example of the code? I'm having a little bit of trouble visualizing your instructions. Thanks!

  4. #4
    aleksserbia is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    30

    Default Re: A question about customizing the Accounts module.

    Hi,
    maybe this will help you.It is very simple.On detail view page try to set a new area with your data , fields , by using a "div" tag and put to page a button i.e. "MORE" ,then assign to it a javascript which will hide\show this data area.
    all best
    Alex

  5. #5
    spectheintro is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    59

    Default Re: A question about customizing the Accounts module.

    Ok, I'm getting the impression that this is a fairly simple HTML and Javascript fix--my apologies for assuming it needed something more sophisticated. Thank you both for your responses!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  2. From Accounts Module to Contacts Module
    By Miceal in forum Help
    Replies: 0
    Last Post: 2007-08-15, 03:23 PM
  3. accounts module mass update follow-up query question
    By inissila in forum Developer Help
    Replies: 0
    Last Post: 2007-07-09, 07:17 PM
  4. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  5. Customizing Quotes Module
    By pmeisner in forum Developer Help
    Replies: 2
    Last Post: 2006-02-09, 05:55 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
  •