We are still running Sugar 4.5.1, how can I add different edit and detail view for cases for each role?
We are still running Sugar 4.5.1, how can I add different edit and detail view for cases for each role?
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.
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?
Really? no one in this whole forum that can help or steer into a direction where we can do this?
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]
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?
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:
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.PHP Code:$user_role = ....;
switch($user_role) {
case 'Support':
load support.html; break;
case 'Sales':
load sales.html; break;
default:
load support.html;
}
Co-Founder of: SugarOutfitters
Modules:
SecuritySuite (Teams)
Photo Module
Follow me on Twitter:eggsurplus
Your Personal Developer
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...
;-)
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks