eCarlos.net

eCarlos blogger om .Net, Sharepoint, Umbraco, Hosting og meget mere

Sharepoint 2010 Tips

Disable sharepoint 2010 mobile


 
<browserCaps>
<result type="System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<filter>isMobileDevice=false</filter>
</browserCaps>
http://blog.mastykarz.nl/inconvenient-sharepoint-2010-mobile-redirect/

Powershell Cheat Sheet


 
List all installed features - Get-SPFeature | Sort -Property DisplayName

Get detailed errors in sharepoint 2010

Edit web.config of sharepoint site.
1. <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
 - Change Callstack and AllowPageLevelTrace to true

2. <customErrors mode="On" />
- Change to Off
3. <compilation batch="false" debug="false">
- Change debug to true
In C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config
Change customErrors to Off as well
PS Only for use on dev machines

Custom properties in search result.
 
View all properties
<xsl:stylesheetversion="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:outputmethod="xml"version="1.0"encoding="UTF-8"indent="yes"/><xsl:templatematch="/"><xmp><xsl:copy-ofselect="*"/></xmp></xsl:template></xsl:stylesheet>