Sharepoint 2010: Sample CSS to customise Site Actions button
By peter.stilgoe
Sample CSS to customise the ‘Site Actions’ buttons in Sharepoint 2010
/* Site Actions Menu */
.ms-siteactionsmenu{
border:1px solid transparent;
background-color:#F2F2F4;
}
.ms-siteactionsmenu .ms-menu-a span{
color:#000000;
}
.ms-siteactionsmenu .ms-siteactionsmenuhover {
background-color:#FFFFFF;
color:#ffffff;
}
More From pstilgoe
Sharepoint Designer could not save the list changes to the server
By peter.stilgoe
When using Sharepoint Designer 2010 to create custom aspx list forms I was getting the error:
‘sharepoint designer could not save the list changes to the server’
I had a look on the net but couldnt really find anything relating to do with this.
I seem to have solved it by going to my list and removing duplicate column names that werent being used ie.
Consultant
Consultant #Used in CT ‘Consultant’#
I was using a custom content type so I deleted all the columns that weren’t ‘Used by’ my custom content type. Once I had done this I was them able to create custom forms as expected in SPD 2010.
Hopefully this will help some people if theyre getting similar problems!
How to display ‘anything’ in Sharepoint 2010 pop up / modal window
By peter.stilgoe
Display a website:
<a onclick="javascript:NewItem2(event, "http://www.bing.com"); javascript:return false;" href="http://www.bing.com/" target="_self">Show Bing In Modal Window</a>
Display a image:
<a onclick="javascript:NewItem2(event, "http://sitename/Images/image.png"); javascript:return false;" href="/images/image.png/" target="_self">Show Image</a>
Display flash:
<a onclick="javascript:NewItem2(event, "http://www.microsoft.com/games/gamesforwindows/games/madagascar2/Mad2_Final_ENU.swf"); javascript:return false;" href="http://www.microsoft.com/games/gamesforwindows/games/madagascar2/Mad2_Final_ENU.swf" target="_self">Flash Game</a>
Thanks to Erik @ http://erikswenson.blogspot.com/2010/09/ways-to-extend-sharepoint-modal-window.html
Sharepoint 2010: Custom master page messes up positioning of your pop dialog boxes
By peter.stilgoe
When you apply a custom master page you may find that it knocks out the positioning of your dialog boxes & you can no longer see the OK & Cancel buttons beacuse they have been knocked down the page. This is because now your new masterpage shiny banner (in my case) is also displaying in the dialog box. To stop this happening is nice & easy thanks to Microsoft:
Simply add ‘s4-notdlg’ to the class ie.



June 1st, 2011
