Showing posts with label SharePoint 2010. Show all posts
Showing posts with label SharePoint 2010. Show all posts

Thursday, 17 February 2011

Hide "Home" link in top navigation of SharePoint 2010

Hide the home node in the top navigation menu of SharePoint 2010

 
In SharePoint 2007, if we set the datasource providor value of ShowStartingNode="False", the "home" link used to be hidden but if you try the same setting in SharePoint 2010, it does not work.


ShowStartingNode="False"
SiteMapProvider="Tried CombinedNavSiteMapProvider and SPNavigationProvider"

To fix this, I had to use the PortalSiteMapDataSource which used to exist in Moss 2007. To get it working follow the steps below:

1. Add a register tag to your master page


2. Add a PortalSiteMapDataSource to the master page

(Open Square Bracket) PublishingNavigation:PortalSiteMapDataSource


ID="GlobalNavDataSource"

Runat="server"

SiteMapProvider="CombinedNavSiteMapProvider"

EnableViewState="true"

StartFromCurrentNode="true"

StartingNodeOffset="0"

ShowStartingNode="false"

TreatStartingNodeAsCurrent="true"

TrimNonCurrentTypes="Heading" / (close square bracket)

 
 
3. Update your top navigation to use this data source instead

(Open Square Bracket)
PublishingNavigation:PortalSiteMapDataSource


ID="GlobalNavDataSource"

Runat="server"

SiteMapProvider="CombinedNavSiteMapProvider"

EnableViewState="true"

StartFromCurrentNode="true"

StartingNodeOffset="0"

ShowStartingNode="false"

TreatStartingNodeAsCurrent="true"

TrimNonCurrentTypes="Heading"/(close square bracket)



I have not tested it completly for side effects as I am just trying these things out in 2010. Will update this post if I find any side effects because of this.

Another way of doing this is through CSS...

 .s4-tn li.static > a {


display: none !important;

}

.s4-tn li.static > ul a {

display: block !important;

}












Tuesday, 21 December 2010

Provisioning the Web Analytics Service Application on Microsoft SharePoint Server 2010

Before creating the web analytics service application, ensure the services on server have the following services as stopped "Analytics Data Processing Service and Web Analytics Web Service.".

If the services are not stopped then the creation of the service application seems to fail.

Also before creating the web analytics service application the
Usage and Health Data Collection and the Session State Service Application have to be provisioned on the farm

1. Navigate to SharePoint 2010 Central Administration.

2. Select Manage service applications under Application Management.
3. Under the New option, select "Web Analytics Service Application"
4. A form is displayed which requests the user to enter a name for the service, an app pool account, the database server name and two databases, one for the reporting and one for the staging database.
5. Once this is entered, click ok and the service will be created
6. Navigate to the services on server page and start the Analytics Data Processing Service and Web Analytics Web Service. If you have a farm environment, then start it on the server where you want the services to run
7. Navigate to the Central Admin page and select - "Monitoring"
8. Click on "Configure usage and health data collection" and choose the logs that are required.
9. Test whether the reports are working by selecting Monitoring from SharePoint 2010 Central Administration and then select View Web Analytics reports under Reporting

Configuring People Search in SharePoint 2010

In SharePoint 2010, people search crawls are not added to the content source sometimes and if you dont see people results, there are a couple of things that you need to check.

Ensure that the user profiles are crawled. To do that go to the search settings page and click on manage content sources - (It’s under Central Administration –> Service Applications –> Search Service Application –> Manage button) Click on content sources..

If an address starting with sps3 does not exist, then add it of the format sps3://intraneturl (where intraneturl is the url of your default intranet site).

Once that step is done, permissions need to be granted to the search crawl account to crawl the content.

To do that, go to the Service Applications page, click on the tab User Profile Service Application, do not click on the link but just highlight that line and click on the "Administrators" button at the top of the page. This will show a window where admin users can be added..If the search crawling account does not appear then add the account to the window and choose the permissions "Retrieve People Data for Search Crawlers" from the permissions list check box. If this step is not done, an access denied message will be shown in the SharePoint 2010 crawl logs.

Once the above steps are done,  full crawl of the content source needs to be done after which the people search will bring back results.

Thursday, 25 March 2010

SharePoint Server 2010 VS SharePoint Foundation 2010 Features

Microsoft have a good feature list available in the new SharePoint release.

Sharepoint foundation is the free version, was called WSS in 2007 version.
Features can be found here..
http://msdn.microsoft.com/en-us/library/ee539826(office.14).aspx

SharePoint Server 2010 is the licened version, was called MOSS in 2007
Features can be found here…
http://msdn.microsoft.com/en-us/library/ee557323(office.14).aspx