Monthly Archives: September 2009

Using default sharepoint pages to process custom context menu actions

Alright, I admit the title is a bit criptic – but I wanted to cut it before I have a paragraph long title. So here is the scenario: you created custom content menu item as described in MSDN article, now you have … Continue reading

Posted in sharepoint | Tagged , , , | Comments Off

Advanced SharePoint file filtering

Whether for audit or to enforce policy, file filtering is an excellent tool. With SharePoint you can specify the list of files you want to be blocked and not really do any audit on already uploaded files. Also, when users … Continue reading

Posted in MOSS, sharepoint | Tagged , | Comments Off

Trying to use an SPWeb object that has been closed or disposed

Almost anytime you`re creating custom sharepoint components or anything else that will require do write some custom code you create and work with SPWeb and SPSite objects. We all know we`re supposed to dispose those after usage, but here is … Continue reading

Posted in MOSS, sharepoint | Tagged , | Comments Off

Hiding webparts from SharePoint Webpart gallery

One of the things I notice when you deploy a SharePoint solution is your content authors and contributors are confused with all of the aout of the box webparts that are in a webpart gallery. Most of the time I … Continue reading

Posted in MOSS, sharepoint | Tagged , , | Comments Off

Changing SharePoint page layout type once it’s deployed

Here is the scenario: you have deployed several SharePoint layouts and page inheriting them. For example: one column layout, two column and three column layout. Let’s say one of the layout displays left nav and other ones don’t. What is … Continue reading

Posted in MOSS, sharepoint | Tagged , | Comments Off

Customizing sharepoint navigation

Navigation in SharePoint is not just bunch of links that you can`t leverage … you can actually connect to a navigation datasource called PortalSiteMapDataSource and render your navigation depending on your custom logic or design requirements. In our case we`ll create … Continue reading

Posted in MOSS, sharepoint | Tagged , , , | Comments Off

Enabling approval on pages in SharePoint Publishing scenario

Sometimes, you may forget to tunr off SimpleApproval in your onet.xml   <   Property Key=“SimplePublishing“ Value=“false“ /> Which in this case will just enable user to click on Publish rather than Submit for Approval button in order to publish … Continue reading

Posted in MOSS, sharepoint | Tagged , , , | Comments Off

Validating asp:CheckBoxList with asp:CustomValidator

When creating user controls and pages you probably make a heavy use of client side validators to ensure user has entered valid values. There is few out of the box visual studio validators such as asp:RequiredFieldValidator etc, but none of … Continue reading

Posted in .NET, MOSS, sharepoint | Tagged , , , | Comments Off

Provisioning document libraries with folders and items in them

When provisioning content to the site – sometimes you may need to provision document libraries with folders and files in those folders. In here I’ll demonstrate how to do that using my web-scoped feature. Feature.XML <?xml version=”1.0″ encoding=”utf-8″?> <Feature xmlns=”http://schemas.microsoft.com/sharepoint/”  Id=”xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”  Title=”My … Continue reading

Posted in MOSS, sharepoint | Tagged , | Comments Off