Tuesday, March 2, 2010

Change Dynamics CRM 4.0 Logo

I've been asked to change a certain organization logo, and I've googled it and found the same result:

although this is still not a supported customization, it's still doable. referencing from Cesar de la Torre blog, here are the ways to do it.
1. change the image file at [C:\Program Files\Microsoft CRM Server\CRMWeb\_imgs\masthead.jpg] and you are done.
2. modify the css definition [TD.ms-crm-MastHead-Logo] at [C:\Program Files\Microsoft CRM Server\CRMWeb\_common\styles\global-dynamic-styles.css.aspx] file.
be sure to backup those settings when you are upgrading to new versoin of CRM or applying a patch, since the update might then overwrite your files and lost your logo custimization.
 --------------------------- this is the end for the post I found,

but the above solution actually changes the logo for all organizations, to change it for certain organization you can navigate to [C:\Program Files\Microsoft CRM Server\CRMWeb\_common\styles\global-dynamic-styles.css.aspx] file and start editing the class TD.ms-crm-MastHead-Logo to include the organization check:

<% if (Request.Url.ToString().ToLower().Contains("<your custom organization name>")) { %>
background-position: top right;
background-image: url(/_imgs/<your custom logo>.jpg);
<% } else { %>
background-position: top left;
background-image: url(/_imgs/masthead.jpg);
<% } %>

and you can do the same for the CSS class for the rest of the colors and backgrounds.

No comments:

Post a Comment