BlogArticleList.aspx

There are 4 entries for the tag BlogArticleList.aspx
DataBinding to SPListItemCollection

This is one of those things that I always forget about and end up having to debug. (Also for those planning to do MCTS, I guarantee that there will be a question about this one ;) ) While it is technically possible to databind to a SPListItemCollection, when you try to refer to any of the SPListItem fields by name you’ll end up with an error similar to this: [ArgumentException: Value does not fall within the expected range.] Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName) +161 Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex) +56...

posted @ Monday, September 07, 2009 2:40 PM | Feedback (0)

Formatting values in a Publishing Page

SharePoint Web Content Management is a pretty flexible beast, if you’re mad keen on writing code (and the ‘ole packaging and deployment curmudgeon), you can make it do pretty much anything. However, some times there are simple things that you’d like to do without having to crank up Visual Studio and start hammering out some angle brackets. One of these simple things is formatting values on a publishing page, particularly dates and Boolean values. If you’re reading this, you’ve probably made the same journey as me: Denial – There must be an easy way to do this, it’s so simple...

posted @ Sunday, September 06, 2009 2:47 PM | Feedback (0)

NavBars – If only it was that simple!

Packaging and deployment is often a pain when it comes to SharePoint development. Don’t get me wrong, the infrastructure provided by Microsoft is very powerful and flexible enough to accommodate practically anything but sometimes it doesn’t quite work the way you think it should. One of the key elements of any web site is navigation. More often than not there’s at least one menu bar containing links to other pages within the site. This is one of the areas where SharePoint can be very helpful. Whenever you create a page or any other content, more often than not you’re...

posted @ Wednesday, August 05, 2009 8:50 PM | Feedback (3)

Custom FieldTypes – Part 1

Download the source code for this project here One of the clever features of WSS 3.0 and MOSS is the ability to create custom field types. These allow you to determine exactly how information is displayed and edited within your SharePoint site. There are a number of excellent articles out there covering how to implement this functionality, such as Nick Sevens article. However, I’ve found that in order to build configurable applications in SharePoint, storing XML and other XML-based data in fields is extremely powerful. It’s my aim in this post to explain how to create a custom...

posted @ Saturday, July 18, 2009 1:28 PM | Feedback (0)