Branding

SharePoint 2010: Branding master page manage scrolling on the body

When branding SharePoint 2010, you might want to remove the scrolling which is happening in the main body area. It works but does not look good.

Try adding this styles below and see the difference.

body {
   overflow: visible!important;
   height: 100%!important;
 }
body #s4-workspace {
 
 height:100%!important;
overflow-y:hidden!important;
overflow-x:auto!important;

 

}

1 comment - What do you think?  Posted by Tosh - October 31, 2011 at 10:11 am

Categories: Branding, SharePoint 2010   Tags: ,

Breadcrumb (PlaceHolderTitleBreadcrumb) problem in OrangeSingleLevel.master Sharepoint 2007

Customizing MOSS 2007 could be difficult sometimes. There are some Out of Box customized Master pages within SharePoint which can be used.

When using OrangeSingleLevel.master, you might encounter some problems

- PlaceHolderTitleBreadcrumb is one of them

Problem:

It only display the breadcrumb if .aspx pages are selected but does not display anything if you select csub sites
Solution:

Use default breadcrumb used by the default.master

 - locate the tag below

 <asp:ContentPlaceHolder id=”PlaceHolderTitleBreadcrumb” runat=”server”>
  <div>
   <asp:SiteMapPath ID=”siteMapPath” Runat=”server” SiteMapProvider=”CurrentNavSiteMapProviderNoEncode” RenderCurrentNodeAsLink=”false” SkipLinkText=”" cssclass=”breadcrumb” CurrentNodeStyle-CssClass=”breadcrumbCurrent” NodeStyle-CssClass=”ms-sitemapdirectional” />
  </div>
 </asp:ContentPlaceHolder>
- Change id=”PlaceHolderTitleBreadcrumb” to id=”xPlaceHolderTitleBreadcrumb” in the above tag

- Paste the tag below to the above tag

<asp:ContentPlaceHolder id=”PlaceHolderTitleBreadcrumb” runat=”server”/>

What we have done above is modified the id=”PlaceHolderTitleBreadcrumb” to id=”xPlaceHolderTitleBreadcrumb” so that OrangeSingleLevel.master does not use
id=”PlaceHolderTitleBreadcrumb” to display breadcrumb and it will display the default breadcrumb what is displayed if using default.master

Now we are using second tag <asp:ContentPlaceHolder id=”PlaceHolderTitleBreadcrumb” runat=”server”/> which displays the breadcrumb defind by id=”PlaceHolderTitleBreadcrumb” in OrangeSingleLevel.master

so at this point we have two breadcrumbs coming up on the page.

Now let’s hide the second one:

Because OrangeSingleLevel.master ContentPlaceHolder id=”PlaceHolderTitleBreadcrumb” contains both breadcrumb and search (which displays on the results pages of the search center), we will hide just the breadcrumb so that it still displays the search box

- Just before </head> tag, insert the text below

<style>
#ctl00_PlaceHolderTitleBreadcrumb_siteMapPath{
display:none
}
</style>

1 comment - What do you think?  Posted by Tosh - September 17, 2010 at 1:40 pm

Categories: Branding, Search, Sharepoint Errors   Tags: , ,

Advanced Search problem using OrangeSingleLevel.master SharePoint 2007

Customizing MOSS 2007 could be difficult sometimes. There are some Out of Box customized Master pages within SharePoint which can be used.

When using OrangeSingleLevel.master, you might encounter some problems

- Search is one of them
Even if you enable Advanced Search, on some pages (specifically pages with .aspx) it comes up with normal search or hides Advanced Search text.

Solution:

- Open OragneSingleLevel.master page in visual studio
- Locate the tag below

<asp:ContentPlaceHolder id=”PlaceHolderSearchArea” runat=”server”>
<SPSWC:SearchBoxEx id=”SearchBox” RegisterStyles=”false” TextBeforeDropDown=”" TextBeforeTextBox=”<%$Resources:cms,masterpages_searchbox_label%>” TextBoxWidth=”100″ UseSiteDefaults=”true” DropDownMode = “HideScopeDD” SuppressWebPartChrome=”true” runat=”server”/>
</asp:ContentPlaceHolder>
<PublishingVariations:VariationsLabelMenu id=”labelmenu1″ runat=”server”/>
<asp:ContentPlaceHolder ID=”PlaceHolderMiniConsole” runat=”server” />
- Replace the above lines with the tag below (this is what is used in default.master)

 <asp:ContentPlaceHolder id=”PlaceHolderSearchArea” runat=”server”>
 <SharePoint:DelegateControl runat=”server” ControlId=”SmallSearchInputBox” />
</asp:ContentPlaceHolder>

- Locate and delete the tag below at the top of the page

<%@ Register Tagprefix=”SPSWC” Namespace=”Microsoft.SharePoint.Portal.WebControls” Assembly=”Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>
- Save OrangeSingleLevel.master and upload to master page gallery

Be the first to comment - What do you think?  Posted by Tosh - at 1:20 pm

Categories: Administration, Branding, Search, Sharepoint Errors   Tags: , , ,

Next Page »