prev next

Custom Error Page Adapter

February 12 2010 21 comments

If you are working with SharePoint 2010, see this article by Todd Carter:
An Expected Error Has Occurred
Mike has also written a nice article of the other options:
SharePoint 2010 Custom Error Messages for Public Facing Deployments

SharePoint doesn’t have an out-of-the-box support for custom error pages. Or at least it’s a little bit problematic to implement custom error pages...

Localizing Strings with an Extension Method

February 11 2010 No comments yet

This is rather uncommon situation, but we needed a way to easily translate strings in our code against the resources deployed in 12\Resources. We created extension methods for that:

public static string Localize(this string source)
{
    return Localize(source, (uint) Thread.CurrentThread.CurrentCulture.LCID);
}

...

A Single Breadcrumb for All SharePoint Pages

February 8 2010 23 comments

SharePoint’s out-of-the-box breadcrumb control is kinda a strange animal. Basically you have three different kinds of breadcrumbs in SharePoint. Each of these breadcrumbs are using different provider for their back-end:

  • Layout Pages / Administration Pages use SPXmlContentMapProvider,
  • Publishing Pages use CurrentNavSiteMapProviderNoEncode, and
  • Form Pages (AllItems.aspx, EditForm.aspx, DisplayForm.aspx, etc.) use SPContentMapProvider

This is all fine, when you have different master...

Publishing Navigation Secrets, Part 1

February 8 2010 10 comments

SharePoint 2007 (and 2010) has a very comprehensive but somewhat confusing navigation system built-in. The main limitation of SharePoint navigation system is, that it doesn’t work over site collection boundaries, and by default it produces real horrible <table> structured output. The output can be altered by writing a custom menu control adapter (or by using CSS friendly control adapters). The...

Entry Points to Content

February 6 2010 2 comments

Modern information systems like intranets contain often massive amounts of information. In our projects we go through quite a lot of trouble to make this information manageable through classification of data. A more philosophically oriented writer might argue that this information becomes knowledge through this process, but it’s not the essence of this writing. After the analysis and classification, the...

Custom Site Actions Link with CSS

February 4 2010 24 comments

Whenever there is a need to customize the look and feel of the default MOSS 2007 site actions control without going through several lines of code, CSS comes in handy.

The tricky part involves replacing the white arrow image which is hardcoded on the default control itself to reflect your design. If we look at the HTML that is rendered...

Page 16 of 17« First...10...1314151617