Wednesday, October 10, 2012

Navigation Controls Values

There are some controls to navigate through in the master page, for example, logo control, site name control and more.
<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitleGraphic">

        <SharePoint:SiteLogoImage name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/images/siteIcon.png" runat="server"/>
    </SharePoint:SPLinkButton>

NavigateUrl Value
Result
~sitecollection/ or /
Leads to the root welcome page (site collection)
~site/
Leads to the current site welcome page.

Hope it helps,
Me.

No comments:

Post a Comment