Thursday, December 19, 2013

SharePoint 2010 How to hide the recycle bin and the all site content links

SharePoint 2010 How to hide the recycle bin and the all site content links




1. Edit page
2. Add content editor webpart (CEWebpart)
3. Edit webpart from its dropdown menu
4. Select Editor and select HTML source
5. Past it
--------------------------------------
<style type="text/css">
.s4-recentchanges {
DISPLAY: none
}
.s4-specialNavLinkList {
DISPLAY: none
}</style>
-----------------------------------------------

 n save
6. Select layout 's of CEWebpart and Select Direction as none.
7. click ok.

Wednesday, December 18, 2013

Show current Page location, Breadcrumb global navigation, Show parent sites

                     Show current Page location, 

                    Breadcrumb global navigation,

                                 Show parent sites.


Replace below code in v4.Master:
Before it take its backup and make it Check-Out and modify for safety.
Note: If you its needed, for each site you need to to be repeated.

-----------------------------------------------------------------------------------------
<asp:ContentPlaceHolder id="PlaceHolderSiteName" runat="server">
<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitle">
<SharePoint:ProjectProperty Property="Title" runat="server" />
</SharePoint:SPLinkButton>
</asp:ContentPlaceHolder>

-------------------------------------------WITH--------------------------------------------------------

<asp:SiteMapPath
     runat="server"
     SiteMapProviders="SPSiteMapProvider,SPXmlContentMapProvider"
     RenderCurrentNodeAsLink="false"
     NodeStyle-CssClass="breadcrumbNode"
     CurrentNodeStyle-CssClass="breadcrumbCurrentNode"
     RootNodeStyle-CssClass="breadcrumbRootNode"
     HideInteriorRootNodes="true"
     SkipLinkText=""/>

Thursday, December 12, 2013

Create URL in Site actions menu

Create URL in Site actions menu


<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
        Id="MyAction"
        GroupId="SiteActions"
        Location="Microsoft.SharePoint.StandardMenu"
        Sequence="2000"
        Title="RKU App Page"
        Description="Custom page by RKU">
<UrlAction Url="_layouts/TestJAVA/rku.aspx" />
</CustomAction>
</Elements>