Monday, January 31, 2011

Where is Announcement list in SharePoint 2010?

Hi,

Well i was wondering when i opened my team site after creating and and found that there was no announcement list available, so i went ahead and though of creating it. well, even it was not there is the selection list of template.

Hum....So? okay, i thought let me go to features and activate the site infrastructure feature. I activated and bingo..I got the announcement list.

This was by default available in SharePoint 2007 and but in SP 2010 it is not.

Monday, January 10, 2011

Enable content approval on a SharePoint list through feature

Hi All,

Sometimes we require enabling content approval on list at the time of creating feature and activating the feature. We can use the List Template and List Instance to achieve creating list and instantiating it.

There is one attribute called EnableModeration which sets the content approval on the list. But I have observed one strange scenario that even though I have specified this attribute, but no luck. So I spent some time on internet and found out solution.

And that solution is you can set this content approval though code in your feature code.

(listobject).EnableModeration = true;


This worked for me. Let me know your thoughts on this.



Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com