Sunday 25 August 2013

 how to add the site url to a page layout and master pages.



The project property web control looks like:
<SharePoint:ProjectProperty Property="Title" runat="server"/>
The Property attribute takes the following values:
Name
Description
BlogCategoryTitle
Category of the current post
BlogPostTitle
Title of the current post
Description
Description of the current site (SPWeb)
RecycleBinEnabled
Returns 1 (recycle bin enabled) or 0 (recycle bin disabled)
SiteOwnerName
User name of the owner for the current site collection
SiteUrl
Url of the current site collection (SPSite)
Title
Title of the current site (SPWeb)
Url
URL of the current site (SPWeb)
   
Example:
Title: <SharePoint:ProjectProperty Property="Title" runat="server"/><br>
Description: <SharePoint:ProjectProperty Property="Description" runat="server"/><br>
RecycleBinEnabled: <SharePoint:ProjectProperty Property="RecycleBinEnabled" runat="server"/><br>
SiteOwnerName: <SharePoint:ProjectProperty Property="SiteOwnerName" runat="server"/><br>
SiteUrl: <SharePoint:ProjectProperty Property="SiteUrl" runat="server"/><br>
Url: <SharePoint:ProjectProperty Property="Url" runat="server"/><br>

Script Tags:
<script type="text/javascript" src='<asp:Literal runat="server" 
               Text="<% $SPUrl:~Site/appBin/js/jquery.min.js %>" />'></script>
<link rel="stylesheet" type="text/css" 
       href="<% $SPUrl:~Site/appBin/css/jquery-ui.css %>" />



No comments:

Post a Comment