dinsdag 18 december 2012

SharePoint 2010: Expand the User Profile info by default

Out of the box, the SharePoint 2010 User Profile page uses a bit of JavaScript to truncate the user’s info like Email, School etc. with a “more information” hyperlink that can be clicked to show all the info.  The user’s description text is also similarly semi-hidden on page load.

The following quick CSS hack can make both these detail areas fully visible by default, and also hide the “more information” / “hide information” hyperlink”:

Code Snippet
  1. #ctl00_PlaceHolderMain_ctl11_showHideLink
  2. {
  3.     display: none;
  4. }
  5.  
  6. .ms-contactcardtext3
  7. {
  8.     display: block !important;
  9.     overflow: visible !important;
  10. }

Thx to Keith Tuomi.

Geen opmerkingen:

Een reactie posten