Tuesday, December 26, 2006

SharePoint 2007: Update summary links web part programatically

During content deployment, my Summary Links web part links pointing to persons in my sites were not updated, So I had to write the following console program to update all summary links in the SharePoint site collection.

SharePoint designer supports updating links in the pages. However, it cannot navigate through all the links (maybe a bug). In the meantime, below program can be used:

(Note: To change links using SharePoint designer, Navgaite using site menu -> site summary -> select hyperlinks -> right click on hyperlink to be changed -> select edit hyperlink -> press OK with changed URL.)

Download Source

Monday, December 25, 2006

SharePoint 2007: Publishing Site Templates

Following post shows problems creating publishing site templates:

1) As many posts already indicates that there is no link for "save site as template" in site settings, so use http://<server>:<port>/site/_layouts/savetmpl.aspx to save site as the template

2) After saving publishing site as template, It appears as a publishing site template in the create site screen. However, when tried to create a site using this template, it may result in exception indicating that default.aspx master page is unable to translate. This may be due to the tokens used by sharepoint for master pages (not quite sure), but things worked fine when I added a new home.aspx page in template site, set it as welcome page and deleted the default.aspx page.

SharePoint 2007: Content Deployment Colloboration Portal

Problem: SharePoint 2007 Content Deployment (B2TR to RTM) of Collaboration Portal Template fails with unable to find publishing root site feature.

Solution:

1) Copy PremiumRootSite and PremiumRootSiteStapling folders from B2TR to RTM machine (for some reason these features are not available on RTM machine. i haven't tried but my alternate guess is it that enabling enterprise features from central admin-> operations screen may provide these features)

Note: Site features folder is located at "\Program Files\Common Files\Microsoft Shared\Web Service Extensions\12\Template\Features".

2) Install features using stsadm

stsadm -o installfeature -filename PremiumRootSite\feature.xml
stsadm -o installfeature -filename PremiumRootSiteStapling\feature.xml

3) Activate features

stsadm -o activatefeature -name PremiumRootSite
stsadm -o activatefeature -name PremiumRootSiteStapling

SharePoint 2007: Outlook Integration and Forms authentication

To enable Outlook Integration in SharePoint 2007 extended Forms authentication based Extranet web site: Set RememberMeSet to true in login page asp:Login control.

This will set an expiring cookie and will be stored in the end-users system enabling outlook to access the user sharepoint credentials (cookie).

Note:
Please be sure to enable client integration in
Central Administration
Application Management
Authentication Providers (Select your application )
Select Extranet Zone
Check Client Integration and Click Save.

Note:
To synchronize SharePoint lists to Outlook, please look at stssync (http://msdn2.microsoft.com/en-us/library/ms868667.aspx).