Wednesday, August 10, 2011

Add Breadcrumb Navigation In SharePoint 2010

Breadcrumb Navigation look like this
1. Code under the Top navigation div or below this syntax
<div id="s4-statusbarcontainer"><div id="pageStatusBar" class="s4-status-s1"></div></div>
 
Put this Master Page:
<div class="SolidBreadCrumb">
	<asp:SiteMapPath	runat="server"
		SiteMapProviders="SPSiteMapProvider,SPXmlContentMapProvider"
		RenderCurrentNodeAsLink="false"
		NodeStyle-CssClass="SolidBreadCrumb"
		CurrentNodeStyle-CssClass="SolidBreadCrumbCurrent"
		RootNodeStyle-CssClass="SolidBreadCrumbRoot"
		HideInteriorRootNodes="true"
		SkipLinkText=""/>
</div>

2. And CSS:
/* Breadcrumb styles */
.SolidBreadCrumb
{
    font-family: Arial, Segoe UI, Verdana, sans-serif; 
    color: #003F50;
    clear:both;
    font-size:9pt; 
    padding-left:7px;
    padding-bottom:2px;
    padding-top:4px;
    border-bottom:1px #003F50 solid;
    margin-bottom:4px;
}
.SolidBreadCrumb a, .SolidBreadCrumb:active, .SolidBreadCrumb a:active
{
	padding-left:0px;
	padding-right: 0px;
	text-decoration:none;
   	color: #003F50;
}
.SolidBreadCrumb a:hover
{
	text-decoration:underline;
}
.SolidBreadCrumbCurrent
{
	font-weight:bold; 
}

Monday, August 8, 2011

Add subsite into the master page Top link bar.

 Set the MaximumDynamicDisplayLevels="3".
Example:
<SharePoint:AspMenu
      ID="TopNavigationMenuV4"
      Runat="server"
      EnableViewState="false"
      DataSourceID="topSiteMap"
      AccessKey="<%$Resources:wss,navigation_accesskey%>"
      UseSimpleRendering="true"
      UseSeparateCss="false"
      Orientation="Horizontal"
      StaticDisplayLevels="2"
      MaximumDynamicDisplayLevels="3"
      SkipLinkText=""
      CssClass="s4-tn"/>
   

Redirect page into the subsite based on the URL string

Inside the Master page Head Tag enter the following Java script.
<script type="text/javascript">
   
var str="http://" + window.location.toString().split("//")[1].split("/")[0] + "/";


if(str=="http://servername/" || str=="http://servernamewithdomain/")
window.location.href = "http://servername:Port/sites/subsitename/SitePages/Home.aspx";


</script>





Give Read Permission for SharePoint Add-in for Azure AD Send Mail to Office 365 Domain Group users.

Below are the Steps for Send Mail to Office 365 Domain Group or AD Group users from Provider Hosted ADD-IN. For this we needs to Give Permi...