Item Level Permission for Document Libraries – Release v1.0.0.0

  [There is currently some problem with CodePlex and I am not able to upload my files or source code in my CodePlex project. This project will be eventually moved to CodePlex soon.] This project is now available at CodePlex –  ——————————————————————————————– ——————————————————————————————– ILP enables item-level permission for document libraries and also allows users […]

Set Available PageLayouts for your Site

Below is a code snippet for setting available page layouts for your site:  List<String> strPageLayoutsToPersist = new List<string> { “Home Page”, “General Detail Page”, “Email Me Page”, “Category Page” }; using (SPWeb spWeb = spSite.RootWeb) { PublishingWeb pubWeb = PublishingWeb.GetPublishingWeb(spWeb); // Get avaialble page layouts for our content types PageLayout[] myPageLayouts = pubWeb.GetAvailablePageLayouts().Cast<PageLayout>() .Where(p => […]