Sunday, June 22, 2008

How to remove the 'title column' from a SharePoint list?

Here by I am posting a very simple workaround to get rid of default column “Title” from any SharePoint List. When we create a SharePoint List, a default column “Title” gets created. While customizing Lists , we often come across a situation where we do not want this “Title” column.

The fist way to deal with this scenario can be :

  1. We can make it a non-required column and take it out of the default view and that way we will not have to deal with it anymore. However, we cannot delete it.
  2. Or When we customize our list, rename the Column name for “Title” with any of the needed column, which is required to be Single Line text.

Friday, June 20, 2008

Custom Site definition with WSP does not show custom lists on Quick Launch navigation bar.

Recently I came across a requirement where I had to create a custom site definition with custom lists , custom content types and document libraries. I found providing site definition as a WSP file is the best way and using SharePoint Solution Generator I created WSP file for my customized site. [ To learn how to use SharePoint Generator to create WSP files, refer link : http://weblogs.asp.net/soever/archive/2006/11/11/SharePoint-Solution-Generator-_2D00_-part-1_3A00_-create-a-site-definition-from-an-existing-site.aspx ]

My original site had few of my custom lists links available on Quick Launch Bar. And visual studio project created for the site also had SharePoint Solution settings Quick Launch Default Option as TRUE

When I created a Site based on this new site template (Development site template section), site did not had these custom lists availble on Quick Launch Navigation bar. Although custom List instances were available on the site.

As my search, it seems that Quick launch navigation customizations gets lost using SharePoint Solution Generator.
[Here is the good link illustrating limitations of SharePoint Solution Generator : http://www.mtelligent.com/journal/2007/10/13/overcoming-the-limitations-of-the-sharepoint-solution-genera.html ]

Fix: -

In Onet.XML file for the site definition file,

  1. Find Configuration section
  2. Find List element for your custom list definition
  3. Add attribute QuickLaunchUrl="Lists/MyCustomList/AllItems.aspx"
  4. Rebuild the application
  5. Deply the application to get new updated WSP file.