Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Need old school Sugar help!

  1. #1
    PeTe3031 is offline Sugar Community Member
    Join Date
    Oct 2011
    Posts
    10

    Default Need old school Sugar help!

    We are still running Sugar 4.5.1, how can I add different edit and detail view for cases for each role?

  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: Need old school Sugar help!

    Why don't upgrade to a newer release?

    You need to add into DetailView.php a switch/case code to choose a specific html file depending on role.

    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.

  3. #3
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: Need old school Sugar help!

    Hi there

    We are running on 4.5.1 due to some modules we had created way back that is not upgradeable, ad 4.5.1 is still working 100% for us without errors. Dont fix what aint broke.

    We are not programmers so could you give an example of DetailView.php a switch/case code?

  4. #4
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: Need old school Sugar help!

    Really? no one in this whole forum that can help or steer into a direction where we can do this?

  5. #5
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Need old school Sugar help!

    I would think that andopes gave you the proper answer. This needs coding and if this is not your skill I would recommend hiring or contracting somebody to do it properly for you. Sounds only fair to me.

    christian.

    Quote Originally Posted by Meyer View Post
    Really? no one in this whole forum that can help or steer into a direction where we can do this?

  6. #6
    madmat is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    164

    Default Re: Need old school Sugar help!

    Quote Originally Posted by PeTe3031 View Post
    We are still running Sugar 4.5.1, how can I add different edit and detail view for cases for each role?
    There is an ACL module enabling you to show/hide fields depending on the role.
    Maybe this helps, the older version works with Sugar4.5+ according to their forum:

    SugarForge: Field Level Access Control: Project Info

    [snap]
    I propably misread your problem, but anyway...
    [/snap]

  7. #7
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: Need old school Sugar help!

    Thanks madmat -
    and christianknoll , please if you cannot contribute positively please do not contribute at all.

    Maybe we want to start to learn how to do these things our selves and we just need some guidance.
    Paying someone will not help us learning at all,


    but by giving a small example of what the code should look like, we can then start to play around and test till we get it right, we just down have a clue where to start or how to start?

    Has the open source community become so unhelpful? though the idea of open was that people were helping each other?

  8. #8
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Need old school Sugar help!

    Andopes is right on and is a very helpful response which is why Christian responded with his additional advice.

    Just look in the DetailView.php where that .html file is loaded and turn that into a switch to load a custom .html based on the current user's role.

    Pseudo code:
    PHP Code:
    $user_role = ....;
    switch(
    $user_role) {
       case 
    'Support'
          
    load support.html; break;
      case 
    'Sales':
          
    load sales.html; break;
      default:
          
    load support.html;

    I do believe this is very helpful and falls in line with the open source community. Doing the actual leg work to take it the next step requires professional help as it requires a fair amount of valuable time.

  9. #9
    madmat is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    164

    Default Re: Need old school Sugar help!

    Quote Originally Posted by eggsurplus View Post
    I do believe this is very helpful and falls in line with the open source community.
    Eggsurplus, you´re too kind.
    I myself became careful with rewarding demanding attitude.

    Meyer:
    Just to help your understanding of the "unhelpful" os community here.

    You´ve asked support for a software that went away quite a while ago and with it many of it´s technological approaches.
    In your case HTML templates and their implementation within the MVC - it sure has been 2-3 years since someone bothered to put up with the 4.5 way to handle it, as it isn´t needed anymore from version 5 onwards.
    So it IS pretty demanding to expect spot on help, or even someone else delivering code taylored to your needs.

    If you take a closer look at the 4.5 version of that acl module I proposed, it accidentally deals with the html templates a lot and could indeed help you to move on.
    Add the bit eggsurplus posted and you should be ready to go.

    Good luck and don´t hesitate to post further questions here, rumors are that there are a few V4 dinos and older around...
    ;-)

  10. #10
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: Need old school Sugar help!

    Thanks eggsurplus..

    This was super helpfull. When the phantom dies you will be my new hero. I have been searching for this solution for over a month now.

    Thanks thanks thanks

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need some old school sugar help
    By Meyer in forum Help
    Replies: 0
    Last Post: 2011-07-28, 11:45 AM
  2. Old School Sugar guys
    By Meyer in forum Help
    Replies: 6
    Last Post: 2009-10-26, 06:48 AM
  3. Replies: 8
    Last Post: 2008-07-12, 06:13 PM

Tags for this Thread

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
  •