Identify different environments
-
15. května 2012 20:17
Hello,
I need a way to identify different environments. For example: Production vs Quality Vs Development using both text and color in the dynamics screen toolbar.
Something like the following:
Anyone has any ideas on how I can do this ?
Všechny reakce
-
15. května 2012 22:49
Hi,
You can change colors in the forms by havinf css web resources.
What you are looking for is unsupported. You can change the colors by modifying the CRM core css files.
Please go to your Dynamics CRM (I am assuming you have CRM 2011) installation folder. There go to the styles folder.
In my case the folder location is: "C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_common\styles". There you will see the file "global.css". Change the CSS there (give the color there). That will do the trick, but it should be unsupported. In future releases or Roll Up updates, the "global.css" file can get replaced and updated. This will replace your changes and again you will have to do your color changes.So it is definitely unsupported, but in case you are going to make the color change, take a backup of this file and document your changes.
I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful.
Ashish Mahajan, CRM Developer, CSG (Melbourne)
My Personal Website: http://www.ashishmahajan.com
My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm
My Twitter: https://twitter.com/#!/ashishmahajan74My Linkedin: 
- Navržen jako odpověď Ashish Mahajan Australia (Architect) 15. května 2012 22:49
- Zrušeno navržení jako odpověď aruizmorales 17. května 2012 18:22
- Označen jako odpověď aruizmorales 23. května 2012 15:01
-
15. května 2012 22:50
I think there is no customization that would support that type of change, as you are looking to overrid a specific stylesheet entry off main.aspx. The style you are looking to override would be Div.ms-crm-TopBarContainerGlobal which is in them.css.aspx.
You could also look into creating a plug in that changes the above style if you load the page ...
Hope that helps some.
--jerry
-
16. května 2012 7:16Moderátor
Although the above posts have useful information, I don't think they'll form a complete answer:
- The problem with changing css or similar files (other than the fact it's unsupported), is that this would apply to all organisations on the same deployment.
- Plugins can modify data, but not user interface components
Another (again unsupported) approach could be to create and register an HttpModule that could intercept the web requests, and modify the results of either the .css or .css.aspx responses, based on the organisation the request is for
Microsoft CRM MVP - http://mscrmuk.blogspot.com http://www.excitation.co.uk
- Upravený DavidJennawayMVP, Moderator 16. května 2012 7:17
- Navržen jako odpověď pogo69 16. května 2012 20:03
- Zrušeno navržení jako odpověď aruizmorales 17. května 2012 18:22
-
17. května 2012 13:31Is there a way to change the color forms in a solution file ?
-
17. května 2012 13:41
Hi,
Can you please explain what you want to achieve. Do you want to change colors of the forms?
Thanks.
Ashish Mahajan, CRM Developer, CSG (Melbourne)
My Personal Website: http://www.ashishmahajan.com
My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm
My Twitter: https://twitter.com/#!/ashishmahajan74My Linkedin: 
-
17. května 2012 18:53
Yes, or have a label that some how identifes each environmnet. Can be done by changing the color of the form as with the previous pictures provided, or labeling like:
I would like to do this using possibly a solution
-
17. května 2012 22:56
Hi,
1) For forms: CRM 2011–Changing the Form Header and Footer Colors (this is Unsupported customisation, please be careful)
http://blog.customereffective.com/blog/2011/08/crm-2011changing-the-form-header-and-footer-colors.html
2) For logo change: Just replace <MSCRM application CRMWeb>\_imgs\CRMMastheadLogo.png image.
(this is Unsupported customisation, please be careful)
3) Provide color to forms:
(this is Unsupported customisation, please be careful)
http://gonzaloruizcrm.blogspot.com.au/2011/08/dynamically-colour-up-your-crm-forms-in.html
4) How to change CRM form field’s label color using Jscript:
(this is Unsupported customisation, please be careful)
http://rajeevpentyala.wordpress.com/tag/change-crm-form-fields-label-color-using-jscript/
I hope this helps. If my responses answered your question, please mark all these responses as an answer and also vote them as helpful.
Ashish Mahajan, CRM Developer, CSG (Melbourne)
My Personal Website: http://www.ashishmahajan.com
My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm
My Twitter: https://twitter.com/#!/ashishmahajan74My Linkedin: 
- Navržen jako odpověď Ashish Mahajan Australia (Architect) 17. května 2012 22:56
- Označen jako odpověď aruizmorales 18. května 2012 12:57
-
18. května 2012 12:58Yes :D Thank you VERY much Ashish, you're awesome !
-
18. května 2012 13:02
One last question Ashish,
On 4 I would like to have a field on the header identifying the environment. The color does not matter. Is this unsupported too ?
-
18. května 2012 13:08
Hi,
Thanks for the kind words. Important thing is your issue is solved.
In CRM 2011 header you can have fields, that's fine.
I hope this helps. If my responses answered your question, please mark all these responses as an answer and also vote them as helpful.
Ashish Mahajan, CRM Developer, CSG (Melbourne)
My Personal Website: http://www.ashishmahajan.com
My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm
My Twitter: https://twitter.com/#!/ashishmahajan74My Linkedin: 
- Navržen jako odpověď Ashish Mahajan Australia (Architect) 18. května 2012 13:08
-
18. května 2012 21:50Hi,
If the last response answered your question and you are satisfied, please mark the response as an answer and also vote as helpful. This will help others to search on similar problems.
Thanks in advance.Ashish Mahajan, CRM Developer, CSG (Melbourne)
My Personal Website: http://www.ashishmahajan.com
My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm
My Twitter: https://twitter.com/#!/ashishmahajan74My Linkedin: 
-
22. května 2012 19:01
I was actually able to change this , modifying main.css.apx. I was able to figure this out using IE's developer tool. Nonetheless thank you Ashish for guiding me to the right place.
-
22. května 2012 22:44
No problems mate.
Can you mark all the answers as completed and also vote them as helpful, which helped you and this will help others also identify the helpful posts.
Ashish Mahajan, Microsoft Dynamics CRM Solutions Architect, CSG (Melbourne)
My Personal Website: http://www.ashishmahajan.com
My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm
My Twitter: https://twitter.com/#!/ashishmahajan74My Linkedin: 
-
23. května 2012 19:46
Hey Ashish,
I'm having another problem:
If I change the background-color on the DIV.ms-crm-TopBarContainerGlobal div tag on main.css.aspx using the developer tool. The color seems to change. However, if I try to do this on C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_common\styles. I do not see the change.
To debug this I have tried the following:
1-Opened IIS Manager and made sure the web site pointed to C:\Program Files\Microsoft Dynamics CRM\CRMWeb
2- Modified the main.css.aspx under C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_common\styles and refreshed the directory under IIS.
3- Made an iisreset /stop, then an iisreset /start
No color is reflected. If I revisit C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_common\styles , main.css.aspx has not been changed or overwritten.
What am I doing wrong ?
-
23. května 2012 20:13
I also changed the theme.css.aspx by applying the following:
DIV.ms-crm-AdvFind-SelectedFilterField,
{
<% = this.GetStyleCss(CrmTheme.Current.Global.AdvancedFindBorder) %>background-color: Red;
}
-
4. června 2012 20:29Moderátor
I've seen this done by modifying the masthead.jpg image. But bear in mind that the same images are reused by every organization in your deployment, so to have different coloured CRM application headers, you'll need separate deployments of CRM.Neil Benson, CRM Addict and MVP at Slalom Consulting. Find me on Twitter. Join over 20,000 other CRM professionals on the Microsoft Dynamics CRM group on LinkedIn.
- Navržen jako odpověď Neil BensonMVP, Moderator 4. června 2012 20:30