Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How to figure out the start page of the current site through the API?

  Asked By: Stella    Date: Mar 12    Category: Sharepoint    Views: 859

Our customer wants to make a slight modification on the breadcrumb and we need to figure out by code if we are on the sites default page or not. Just checking the URL for 'default.aspx' won't work since the name of the start page for a site can be changed at a later time.

In the pages library, sharepoint marks the default page as (default), so there must be some way to figure out the URL to the start page of the site. Just can't figure out how.

Any ideas?



1 Answer Found

Answer #1    Answered By: Timothy Hall     Answered On: Mar 12

You have to peek into the PublishingWeb.DefaultPage property