Monday, March 29, 2010

<customError mode=”off”> doesn’t seem to work

I got some strange situation at first. I got a default custom error message when calling search in SharePoint 2010. I first changed the <customError mode=”Off”> tag in the web.config of the current web application. However that didn’t change anything.

I noticed that the page that showed the error was <website URL>/_layouts/, so I checked the <14-hive>\TEMPLATE\LAYOUTS\, and there it was, a web.config. I contained the line:

    <customErrors mode="On" />

So I changed it to “Off”, and worked as expected.

Thursday, March 25, 2010

Navigation options in Onet.xml in SharePoint 2010

I was building some site templates and tried to set the option “sub sites” for Top navigation, but not for the Quicklaunch. After reading these blogs: http://blogs.msdn.com/vesku/archive/2007/03/23/controlling-navigation-options-from-the-onet-xml.aspx and http://sharepointbergen.blogspot.com/2007/03/controlling-site-navigation-in-site.html I noticed there were some changes in SharePoint 2010 navigation when using the publishing feature.

Here are the new properties that are in SharePoint 2010:

  • GlobalDynamicChildLimit
  • CurrentDynamicChildLimit
  • GlobalIncludeSubSites
  • GlobalIncludePages
  • CurrentIncludeSubSites
  • CurrentIncludePages
Note I:
IncludeSubSites and IncludePages still work, however they set the value for of the subsite and page property of both the Global and Current section.
Note II:
The (misspelled) property AutomaticSortingMathod still works, but you can also use AutomaticSortingMethod.