Sunday, January 27, 2008

Custom List View Style in MOSS 2007

A description of list view style xml structure can be found at msdn http://msdn2.microsoft.com/en-us/library/ms916812.aspx. I will explain here how to modify the view style such that a column containing bullets is added in the style.

Open document at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\GLOBAL\XML\VWSTYLES.XML. It contains definition of several list view styles provided by default in MOSS 2007 using Collaborative Application Markup Language (CAML).










While rendering the view to a browser, all elements are parsed and converted to simple HTML tags. Thus to add a column we need to add HTML tags rather than CAML tags. To add the mentioned column, I modified <ViewHeader> and <ViewBody> sections. The view finally looks as displayed below:

No comments:

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...