Archive | SharePoint 2010 Customization RSS feed for this section

Branding SharePoint 2010 Search Box


How to customize and brand SharePoint 2010 Search Box?

Excellent post from Chris Stahl  speaks about how you can customize and brand SharePoint 2010 search box.  You can get source code and images to brand your search box for SharePoint 2010

Read more about

how you can brand SharePoint 2010 search box

SharePoint 2010 and 2007 Themes



http://sharepoint.tuning.bind.pt/step_1.aspx

SharePoint 2007, 2010 and Office 365 by
http://sharepoint.tuning.bind.pt

Bind Tuning platform allows you to easily create professional, fully customizable Sharepoint themes in minutes, like never before.
Customize colors, menus, fonts, widths and much more.
Just like if you had a design team working for you

Designing pages for quicker downloads (SharePoint Server 2010)


Microsoft SharePoint Server 2010 includes features that help to optimize page loading over a wide area network (WAN). Designing pages to make them as small and responsive as possible complements these performance improvements.

Different techniques are not specific to Microsoft SharePoint Server 2010. General methods that you can use on any Web site are not discussed in great detail in this article. Instead, this article focuses on the features in Microsoft SharePoint Server 2010, elements that are included in the page, and ways in which you can speed up an initial visit to a SharePoint site

Designing pages for quicker downloads (SharePoint Server 2010)

How to change SharePoint page title using code?


By default the form has a ContentPlaceHolder control with a ContentPlaceHolderID="PlaceHolderPageTitle" which in the master page is the text that will fall in the header’s title tag.  Unfortunately, <asp:Content> controls are not added to the higherarchy at runtime so I can’t access it directly.

There are good ways to modify this title on the client side with Javascript but client side code doesn’t really suit my needs as the title will come from some custom manipulation that’s better done on the server.  It did cross my mind that I could do this minipulation and then post it back in script to have it update but it seemed kindof like taking the long way around.  Anyway, long story short I found a way to access that title in the Page_Load event but if anyone out there has any better ideas I’d love to hear them.

See the code: SharePoint page title using code
Author: Julie Turner

Changing SharePoint 2010 default font size


By default, SharePoint 2010 font size is Verdana 8pt and how do I change the font size?  What if I want to change the font size to something like Arial 13?

How do I make it Arial as a default font in SharePoint 2010 content editor web part so that every time user edit contents, it default not to Verdana?

replace_sharepoint_2010_default_font_1

Here are the steps to change default font size in SharePoint 2010

1. I am using the CSS from Serve’s Blog Copy this CSS and create a new CSS file in SharePoint Designer or download from below

.ms-bodyareacell td, .ms-bodyareacell p, .ms-bodyareacell div, .ms-bodyareacell span,
.ms-bodyareacell p, .ms-bodyareacell a,.ms-bodyareacell a:active, .ms-bodyareacell a:hover,
.ms-bodyareacell a:link, .ms-bodyareacell a:visited,.ms-bodyareacell td,.ms-bodyareacell div,
.ms-bodyareacell font

{
font-size:13px;
font-family:Trebuchet MS,Verdana, Arial;
letter-spacing: normal;
color:black;
}

.ms-bodyareacell h3 a, .ms-bodyareacell h3 span, .ms-bodyareacell h3 div,.ms-bodyareacell h3 p,
.ms-bodyareacell h3 font
{
font-size:15px;
color:black;
}

.ms-wpheader
{
background-color:#e9e9e9;
}

2. Save your CSS file. In this case, I am calling as custom2.css and saving this file in style library
default_font_face_change_in_sharepoint_2010_2

3. Open your master page and add a reference to your new custom2.css file

custom_font_for_sharepoint_2010_3

4. Now go back to your SharePoint page and edit. You will see your default font is changed to what every you specified in your CSS

sharepoint_2010_text_change_4

This is how you can change SharePoint 2010 default font to something you like.

How to edit source in Content Editor Web Part in SharePoint 2010


How to edit Content Editor Web Part with HTML Text editor in SharePoint 2010?

In SharePoint 2010 Editing content Editor Web Part is kind of tricky.  I was unable to find the source and HTML Text editor in content Editor Web Part Property section in SharePoint 2010.
From Format Text Tab on the ribbon toolbar, I saw the HTML drop down list and selected to edit HTML source but the source I insert is not going into the SharePoint 2010 content editor web part at all.

After playing around for while, I came to know how to edit the content editor web part.  I hope this  will help someone who is having issues with SharePoint 2010 Content Editor Web Part.

 

Adding Content Editor Web Part in SharePoint 2010

Editing Tools | Insert | Web Part


Adding Web Part in SharePoint 2010

Under categories go to media and content to add SharePoint 2010 content Editor web part

Categories | Media and Content |  Content Editor

Media and Content, Content Editor Web Part

Click Add to insert Content Editor Web Part in SharePoint 2010 page

Adding Content Editor in SharePoint 2010

Your web part will say “ Edit this web part to add content to your page”  Click on Content Editor Menu and go to Edit Web Part 

Click on Content Editor Menu and go to Edit Web Part

As soon as you click on Edit Web Part, the message in Content Editor web part changes to “ Click here to add content” 
Now you can click on HTML under Format Text and click on Edit HTML Source

image

Editing HTML Source in SharePoint 2010 content Editor Web Part

Editing HTML Source in SharePoint 2010 content Editor Web Part

In HTML Source Editor you can input your HTML source.  This is how you edit Content Editor Web Part to add html source in SharePoint 2010

image

Customization and branding options in SharePoint 2010



Source:

http://sharepoint.microsoft.com/Blogs/GetThePoint/Lists/Posts/Post.aspx?ID=472

Before you begin any significant SharePoint 2010 customization and branding, you need to make sure you do all the necessary planning. For example, know the goals of the business or department, the users of the site, and what they need. Do the necessary research, surveys, prototyping, and so on. It pays huge dividends.

As you get into the design, assemble your design requirements and scope. Create your design mockup, wireframes, graphics, and prototypes. One such tool that can be great for site wireframes is Visio 2010 with its many templates, art, and stencils.

For more information on planning, I’ll make my first of many references to the article, Real World Branding with SharePoint 2010 Publishing Sites by SharePoint MVPs Andrew Connell, and Randy Drisgill.

Read More: SharePoint 2010 Branding and Customization

 

Tools to Customize and branding SharePoint 2010

  • Browser – Using the SharePoint interface itself (what we commonly refer to as the ‘browser‘), you can change and customize pages, navigation, themes, global settings, and more. There’s a lot to be said for the options in the browser, especially the ribbon commands that are available to each page, allowing you to add and change text, images, Web Parts, and more. In addition to this, you have a site settings page for each site and a site collection settings page for each site collection, allowing you to make numerous global changes to the site. Be sure you exhaust all of your options in the browser before moving to the next step.

  • SharePoint Tools – SharePoint tools include programs like SharePoint Designer 2010, InfoPath 2010, and Office Professional 2010. With these tools, you start to get under the hood a bit to change the appearance of views, forms, pages, and sites. With SharePoint Designer (a free download), you can customize your pages, layouts, master pages, and CSS. With InfoPath 2010, you can customize the appearance and behavior of the heavily-used list forms for your organization. Lastly, with Office 2010 and programs like Word, Excel, and PowerPoint, you can customize document templates and even create professional-looking SharePoint themes.

  • Code solutions – Code solutions are created with software development programs like Visual Studio 2010. By creating a code solution, you have complete control over not just the look and feel of the site but really the SharePoint product itself. You can build new interfaces, applications, features, and more. Using SharePoint’s sandbox solutions, a developer can safely and securely deploy a custom solution for the entire organization. On the subject of branding, many designers will choose to roll out a design as a custom solution so that it can be deployed across multiple sites and collections at once (see Deploying Branding Solutions using Sandboxed Solutions).

  • Read More: SharePoint 2010 Branding and Customization

How to shorten SharePoint long URL


Using a  SharePoint URL Shortener from Codeplex you can shorten long SharePoint URL

Project Description
This SharePoint feature allows end-users to generate shortened URLs against SharePoint content that can be used in documents, emails, navigation links, etc.

SharePoint URL Shortener : All you to shorten SharePoint Long URL

SharePoint URL Shortener

Download SharePoint Shortener URL tool from CodePlex: SharePoint URL Shortener Tool

Hide recycle bin in SharePoint 2010


How to hide recycle bin and view all site contents in SharePoint 2010 or Remove ‘All Site Content’ and ‘Recycle Bin’ link ?

Hide recycle bin in SharePoint 2010

1. Open your master page.  In this example, I opened V4.Master.  Go above </head> and past the following CSS code

 1: <style>  
 2: .s4-specialNavLinkList
 3: {   
 4: display:none !important;
 5: }  
 6: </style>

CSS code to Hide Recycle Bin in SharePoint 2010

2. Check in your master page and publish your master page as Major version for everyone to see your change.  Now go back to you site and you won’t see View All Site Contents and Recycle Bin in SharePoint 2010 Pages.

Removed 'All Site Content' and ‘Recycle Bin’

Removed ‘All Site Content’ and ‘Recycle Bin’ link in SharePoint 2010 using CSS code

SharePoint 2010 Custom Sub Level Navigation


How to add a Sub Level custom Navigation to SharePoint 2010 Global Navigation?

I was able to follow instructions from :
http://www.estruyf.be/blog/adding-a-subsites-navigation-level-under-the-global-navigation-row/
and create custom SharePoint 2010 sub level navigation.

This is what I have done to create new Sub Level Navigation in SharePoint 2010

1. Go to
http://www.estruyf.be/blog/adding-a-subsites-navigation-level-under-the-global-navigation-row/
and click on download file link

2. Open your SharePoint 2010 site using SharePoint Designer 2010

3. Create a new master page and past the code which you just copied from the link.  In my case, I am calling my master page as custom_2.master

4. Check in and publish the master page

Approve Master Pages in SharePoint 2010

5. Click on the drop down and select Approve/Reject

Approve/Reject Master Page

6. Approval Status

image

7. In your SharePoint site, Site Actions | Site Settings | under look and feel select Master Page.  Make sure your new master page is selected and click ok

Selecting Master Page in SharePoint 2010 

8. Now go back to your top level site and create some sub sites.  If you don’t

see the navigation this way.  Go to Step 9

Custom SharePoint 2010 Sub Level Navigation

9.  Site Actions | Site Settings | Navigation (Under Look and Feel) and check Show sub sites

Show Custom SharePoint 2010 SubSites

10. By changing the color of the CSS, you can create different SharePoint 2010 Sub Site navigation

Sub Level Navigation SharePoint 2010 colors

Sample Custom Sub Level Navigation in SharePoint 2010

Custom Sub Level Navigation in SharePoint 2010 - 1 Custom Sub Level Navigation in SharePoint 2010 - 2

Custom Sub Level Navigation in SharePoint 2010 - 3

 

Resize SharePoint 2007/2010 PageViewer WebPart height


Is there a way I can resize the page viewer webpart height to 100%? or any Alternative to the SharePoint Page Viewer Web Part

In SharePoint Page Viewer WebPart,  it’s  hard to setup the height to adjust to fit zone for some reason and I have tried so many solutions which I found in search engine but I am not satisfied.

Page Viewer Web Part Height Problem

Using the Page View Web Part, I added the link which I want and for the height and width I left the default value as No, Adjust height/width to fit zone.  When I apply these settings, I am able to see the width adjusting to the zone but height will not change based on the zone.

What I need is a solution which should adjust height and width if I added a external or internal URL.

I finally came up with a Java Script which and do the trick for me and here are the steps.

1.  Don’t use Page Viewer Web Part. Use Content Edit Web Part rather than Page Viewer Web Part. Add a content editor web part into the page where you want to display a internal or external URL

Edit the content Editor Web part and open source editor. Copy the Jave Script code and past it in the source code area.

image

<--- From Here --- >

<script type="text/javascript">

function f_clientWidth() {
    return f_filterResults (
        window.innerWidth ? window.innerWidth : 0,
        document.documentElement ? document.documentElement.clientWidth : 0,
        document.body ? document.body.clientWidth : 0
    );
}

function f_clientHeight() {
    return f_filterResults (
        window.innerHeight ? window.innerHeight : 0,
        document.documentElement ? document.documentElement.clientHeight : 0,
        document.body ? document.body.clientHeight : 0
    );
}

function f_filterResults(n_win, n_docel, n_body) {
    var n_result = n_win ? n_win : 0;
    if (n_docel && (!n_result || (n_result > n_docel)))
        n_result = n_docel;
    return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}

function resizeCaller() {
//alert("OK");
var h = f_clientHeight();
var w = f_clientWidth();

try{    

    var oFrame    =    document.all("iframePage");

    oFrame.style.height = f_clientHeight()*0.97;
    oFrame.style.width = f_clientWidth();
    if(oFrame.style.display=="none") {
        oFrame.style.display="block";
    }

    }
    //An error is raised if the IFrame domain != its container's domain
    catch(e)
    {
    window.status =    'Error: ' + e.number + '; ' + e.description;
    }

}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

if (window.addEventListener)
window.addEventListener("resize", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onresize", resizeCaller)
else
window.onresize=resizeCaller

</script>

    <iframe src="http://virtualizesharepoint.com" scrolling="no" id="iframePage"
        style="display:none">
    </iframe>


<--- End --- >



2. Add your URL

Page Viewer Web Part height Solution

3. Save your code and click Ok for in Content Edit Web Part

View Page in Content Editor WebPart
4. Publish  your page and now you page now should able to  Adjust height/width to fit zone in SharePoint 2007/2010

SharePoint 2010 MasterPages & CSS


Project Description

This project provides a collection of free SharePoint Foundation & SharePoint Server MasterPages.
This includes not only the MasterPages but the overiding CSS.

Free version download: Free SharePoint 2010 MasterPages

SharePoint 2010 Sample Master Page 1

SharePoint 2010 Sample Master Page

 

SharePoint 2010 Sample Master Page 2


SharePoint 2010 Sample Master Page 2

 

There are three downloads available at the moment;

FreeSPMPComplete which contains all the available MasterPages and CSS

OrangeWebsite which contains the files for the Orange Website which can be seen here
http://sharepoint.weknownothing.co.uk/ExampleWebsite/SitePages/Home.aspx

BlueWebsite which contains the files for the Blue Website which can be seen here
http://sharepoint.weknownothing.co.uk/ExampleWebsite2/SitePages/Home.aspx

Removing the left-hand navigation in SharePoint 2010


 

How to Hide or Remove the Quick Launch in SharePoint 2010

Trying to customize SharePoint master page and having so much of problem hide or remove the left navigation in SharePoint 2010.  I searched in Google for solutions but it didn’t work well for me.

When I tried to hide the left navigation in SharePoint 2010 from the solutions I got, I was getting a blank space in left side.

Empty Space While hiding Left Navigation in SharePoint 2010

Empty Space While Hidding Left Navigation in SharePoint 2010

Empty Space while editing the master page

hide_the_quick_launch_in_sharepoint_2010_empty_space

 
Many of the solutions also speaks about adding the code Content Editor but that also gave me a blank space in the left hand side.  After long struggle, I made it work by using the code from

http://chrisstahl.wordpress.com/2010/03/15/hide-the-quick-launch-in-sharepoint-2010/
 
 

How to Hide or Remove the Quick Launch in SharePoint 2010 working Solutions for me:

<style type="text/css">

/*–Hide Quick Launch –*/
#s4-leftpanel{
display:none
}
.s4-ca{
margin-left:0px
}
</style>

 

 

Copy above code and past it in your master page on above </head> to

hide Hide or Remove the Quick Launch in SharePoint 2010

hide_the_quick_launch_in_sharepoint_2010_solutions

Hide or Remove the left navigation in SharePoint 2010

Removed the empty space and by hiding the left navigation in SharePoint 2010

No Empty space anymore

SharePoint 2010 Taxonomy Challenge


 

SharePoint 2010 Taxonomy

One of the most talked about capabilities since the launch of SharePoint 2010 is the Managed Metadata Service.  For those of you who aren’t already familiar with this service and the support it provides for modeling and deploying a rich corporate taxonomy, I’d recommend reading Pat’s post Introducing Enterprise Metadata Management.  For those of you who are familiar with the great taxonomy capabilities in SharePoint 2010, I’m sure many of you have spent time looking at an empty term store wondering where to start.

Read More:
http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=966

Follow

Get every new post delivered to your Inbox.

Join 128 other followers