Add a Custom Group of Actions in SharePoint 2007 Site Settings Page

Requirement: Adding a custom group of actions in SharePoint site settings page. Solution: We can create a feature to achieve this. Here is what I’ve done: Create a folder “MyCustomAction” under: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES Create these two files in MyCustomAction folder: Feature.xml Elements.xml Place the below content in the…

Read more

SPQuery Returns All of the Items

During a development project, calling SPQuery returned all items from list! Looks like it just ignored the filters we applied. Fix: This above code returns all items in the list, but if you remove the <Query> tag all works fine: “<Query><Where><Eq><FieldRef Name=”Title” /><Value Type=”Text”>Test</Value></Eq></Where></Query>“;  Remember, Query XML is case sensitive! So <Where>…

Read more

Change PDF Icon in SharePoint

By default, SharePoint does not include PDF document file type icon. So we need to do the below changes to display the PDF icon for PDF files in our SharePoint environment. Here is how we can add PDF icon in SharePoint 2010: Download an appropriate icon for the PDF document type. You…

Read more

How to Hide View All Site content & Recycle Bin Links in SharePoint 2010/2007?

Another frequently asked question: How to Hide the Recycle Bin & View all Site content links in SharePoint site? Yes, we can hide them, not a big deal! Hide View all site content & Recycle Bin Links from Quick Launch in MOSS 2007 Here is how to hide View All Site Content…

Read more

Expand-Collapse for Multiline Text columns in SharePoint

Sometimes, when working with the Multiline fields, they may occupy the whole page :-). We can solve this issue by introducing Expand-Collapse Trick with jQuery. On clicking on the little Arrow that row will be expanded, then again clicking will collapse. Here is How: Add the CEWP webpart and place the below…

Read more

SharePoint Site templates, Site Definitions, Feature Stapling – Explained

The main objective of the feature stapling concept is: Pre-activate desired features automatically on creating SharePoint sites based on site definitions like Team Sites (not site template .stp). say for e.g. you want to apply branding on creating a team sites, You can use feature stapling. So, In your feature, you have…

Read more

KPI Dashboard using SharePoint List

We can generate the KPI list using simple SharePoint list with computed columns! Here is how we can get SharePoint list based status indicator. Create a SharePoint list with desired fields, then create a field with choices, Let’s say, Field name Cost_Input: with values Red, Green, Blue. Then let’s create another computed…

Read more