Pop Up in Modal SP Dialog

<a href=”javascript:OpenPopUpPage(‘/SitePages/yourpage.aspx’);”>What s NEW ?</a>


Hide Recently Modified Items – Quick Launch

In SharePoint 2010 we all are familiar with the following annoying quicklaunch menu, if you wish to hide it, there are 2 options.







First solution:

1. Open your master page (default one is V4.master) and find the content place holder ‘PlaceHolderLeftActions’ as shown below:

<asp:ContentPlaceHolder id=”PlaceHolderLeftActions” runat=”server”>


2. Now set the content place holder visible property to false. as shown below:

<asp:ContentPlaceHolder id=”PlaceHolderLeftActions” runat=”server” Visible=”false”>


Why it works?

The above trick works as in the aspx files the recently changed menu is put inside the placeholder. If you open a file in SharePoint Designer  you can find that the recently modified menu is put under the placeholder with id ‘PlaceHolderLeftActions’ as shown below:

<asp:Content ContentPlaceHolderId=”PlaceHolderLeftActions” runat=”server”>

<SharePoint:RecentChangesMenu runat=”server” id=”RecentChanges” />



The content placeholder ‘PlaceHolderLeftActions’ mainly used in blog and wiki sites. So if you are using any of this kind of template then hiding the content place holder will hide others related links too. However, I have found that hiding the content placeholder in team site works perfectly.

Second and Better Solution

However, the above trick may have side effects, if the same place holder (‘PlaceHolderLeftActions’) is  used by other pages. Another solution (which I think less side effects or no side effects) is to apply a css. As shown in the following screen, the ‘recently modified’ quick launch uses a css class named ‘s4-recentchanges’ (shown with firebug).


So we can another property ‘display:none’ to the same css class by adding the following extra attribute to master page’s header section:

<style type="text/css">

You can even put the above section in a css file and refer the file in master page.

The image  below shows the master page with the css class:


Find SharePoint GUIDs using PowerShell

2007 version:

$site = New-Object Microsoft.SharePoint.SPSite("http://yourserver/sites/yoursite")
$web = $site.OpenWeb("yoursubsite")
write-host "Site: " + $site.id
write-host "Web: " + $web.id
$web.lists | Format-Table title,id -AutoSize


2010 version:

$site = Get-SPSite http://yourserver/sites/yoursite
$web = $site.OpenWeb("yoursubsite")
write-host "Site: " + $site.id
write-host "Web: " + $web.id
$web.lists | Format-Table title,id -AutoSize

Add Page Title to Custom SharePoint Page

I have been creating custom pages for Windows SharePoint Services for some time now – which enable me to create powerful SharePoint applications.

However, with every custom page I create, the page title is always blank, which results in the title being the URL to that specific web page. Ugly.

Here is the solution:

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
Your Custom Page Title!

This allows you to set a page title for any custom SharePoint page.