Results 1 to 8 of 8

Thread: Need to edit Employees layout

  1. #1
    ivankramer is offline Member
    Join Date
    Jun 2011
    Posts
    7

    Default Need to edit Employees layout

    Hello,

    I need to edit the "Employees" layout: to add/remove some value fields and rename some. Is there any built-in instruments in Sugar? I haven't found anything suitable in Studio or Dropdown editor.

    Or maybe there is any external module for this?

  2. #2
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Need to edit Employees layout

    Take this info with a grain of salt, I'll explain below.

    You can dupe Sugar into accessing your Employees module through studio by using the following url: <your_sugar_instance>/index.php?module=ModuleBuilder&action=index&type=s tudio#mbContent=module%3DModuleBuilder%26action%3D wizard%26view_module%3DEmployees

    You can also navigate to any other module in studio and then after the view_module%3D you can change it to Employees and it should give you what you need. You can actually do this for most modules - some will actually lock you out/sugar won't be able to find, but its worth a shot for most modules that aren't on the list.

    There might be a 'proper' way to add modules to the studio list, but I don't know what it is.

    However, you must take care when modifying the Employees module as it is very strongly connected with your Users module. Actually, they use the same database table, so if you add/remove fields in the Employees module you need to make sure that they're not important fields in the Users module as well. If you're just making layout changes, then you should be fine, but I'd stray away from the fields unless you have a good idea about how Sugar works.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  3. #3
    ivankramer is offline Member
    Join Date
    Jun 2011
    Posts
    7

    Default Re: Need to edit Employees layout

    Thank you!
    Why isn't it in the list of modules by default?

  4. #4
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Need to edit Employees layout

    I don't know exactly why (I didn't code it/I don't work at SugarCRM), but I would assume its because of the previously mentioned interconnectedness of the employees and users modules. As most people don't realize that relationship exists, its probably a good idea to keep people from modifying the employees module so they don't accidentally screw things up.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  5. #5
    sttack1 is offline Junior Member
    Join Date
    Oct 2007
    Posts
    3

    Default Re: Need to edit Employees layout

    When using the link provided, it goes to a blank studio page. Am I doing something wrong?

  6. #6
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Need to edit Employees layout

    hmm... it seems that somehow the url malformed (there's a space in the word studio and before the word wizard that shouldn't be there). should be: /index.php?module=ModuleBuilder&action=index&type=s tudio#mbContent=module%3DModuleBuilder%26action%3D wizard%26view_module%3DEmployees

    If it malforms again, all you need to do is navigate to studio, select another module, and then in the url you'll see something like view_module%3D{other_module} and you can change that other module to Employees.

    Again, be careful about changes in this module, as this is essentially a form of hacking and isn't entirely how sugar should be used.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  7. #7
    prusanoff is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    San Francisco
    Posts
    15

    Default Re: Need to edit Employees layout

    Hey Guys

    Thanks for the helpful tip. It did let me add some fields and set them up in the lay out. But when ever i go to the edit view and put in the info i need to save and save it all that info gets lost and dose not save !!! any idea how i can fix this ?????

  8. #8
    prusanoff is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    San Francisco
    Posts
    15

    Wink Re: Need to edit Employees layout

    Hi Every one i fixed this problem
    All you need to do is add the added feilds to the /modules/Employees/save.php file Line # 94 and it worked like a charm on sugar 6.3.1

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2008-05-13, 09:29 AM
  2. Replies: 5
    Last Post: 2007-05-21, 12:59 PM
  3. Edit Employees Layout via Studio
    By RickM in forum Feature Requests
    Replies: 1
    Last Post: 2007-04-03, 04:31 AM
  4. Custom Field and Layout Editing on Employees
    By eduardobaer in forum Help
    Replies: 0
    Last Post: 2006-09-13, 01:48 AM
  5. employees should edit their own accounts... !?
    By nomar in forum Developer Help
    Replies: 0
    Last Post: 2006-08-29, 08:28 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
  •