Thursday, November 22, 2012

add custom link and custom group in sharepoint site settings page using feature

Create a empty sharepoint solution vs2010-> new Project-> Empty Sharepoint 2010 solution Add New Fature Right click on "Feature" Add new feature Add New Item-> select "Empty Element" You'll get Element.xml file in the project Add Following xml to the Elements.xml



<?xml version="1.0" encoding="utf-8"?>


<Elements xmlns="http://schemas.microsoft.com/sharepoint/">


  <CustomActionGroup


    Id="CustomFeatureGroup"


    Title ="PolicySignOff"


    Sequence="1000" Location="Microsoft.SharePoint.SiteSettings"


    ImageUrl="../_layouts/dhq_icon.png">


  </CustomActionGroup>


  <CustomAction


     Id="CustomFeatureLink"


     GroupId="CustomFeatureGroup"


     Location="Microsoft.SharePoint.SiteSettings"


     Sequence="1000"


     Title="PolicySignOff Settings">


    <UrlAction


          Url="/_layouts/settings.aspx"/>


  </CustomAction>


</Elements>


here "Custom Action Group" tag will add new group in the site settings page. "Custom Action" will add new custom link. We need to mention the custom Group and Location in the tag. For default sharepoint Group id's and link's check here. Add following xml in feature.xml file



<feature activateondefault="TRUE" alwaysforceinstall="TRUE" autoactivateincentraladmin="FALSE" description="Will create a link for PolicySignOff Settings" hidden="FALSE" id="{GUID}" imageurl="dhq_icon.png" scope="Site" title="{Title}" xmlns="http://schemas.microsoft.com/sharepoint/">


  <elementmanifests>


    <elementmanifest location="{Elemnts.xml location}">


    </elementmanifest>


  </elementmanifests>


</feature>

You need to activate the feature. You'll get custom group and custom links in site settings page.

Wednesday, November 21, 2012

a web part of web form control on this page cannot be displayed or imported sharepoint 2010 error in Sharepoint webpart

"a web part of web form control on this page cannot be displayed or imported sharepoint 2010", It's a generic error in sharepoint 2010 that in the message it self they are explaining the problem that it was not registered as safe. I was googled for some time to get the exact details and resolution for that error i have found an excellent article here 

http://www.bluedoglimited.com/SharePointThoughts/Lists/Posts/Post.aspx?ID=189

It will applicable for not only sharepoint 2010, also reflects Sharepoint all versions to explain the error details.

Tuesday, November 13, 2012

Signout Skype in windows8

Hi all, I was installed windows 8 in my machine. The User interface and tiles are pretty good in Windows 8. Installed Skype and there is no option to sign out skype. After googling some time found the way.Go to bottom right,We'll get the options as seen below.
Click on settings and you get the screen as below
Select options and there you get the signout option as shown below.
We can signout the skype as above.Hope this helps.

Thursday, November 8, 2012

basic site template Id's in Sharepoint 2010

One of Client required that they need to create a site when ever a new item in the list. We can go with list event handler for that and they need some blank meeting workspace site template to be used when a new item created. We all know the team site template id is 'STS#0'. But what is the id for the blank meeting workspace. After googling a little bit i got the folloewing link with al site id's
  https://www.nothingbutsharepoint.com/sites/devwiki/SP2010Dev/Pages/Site%20Templates%20in%20SharePoint%202010.aspx

Difference between sharepoint Team site and Publishing site

Got some time to explore the things in sharepoint 2010. I was always confused that what is the difference between sharepoint publishing site and shrepoint sharepoint team site and which template shou;d considered? After gooling a little bit found a exleent blog, But there the author was considered Sharepoint 2007. But still it is applicable for sharepoint 2010. http://mindsharpblogs.com/penny/archive/2007/09/28/2973.html