Posts

Showing posts from September, 2012

Hide First Tab (Home) in SharePoint 2010 Navigation

Image
You will notice that the Home tab actually is the first node and then has a child UL which represents the rest of the navigation Items. So the approach is to hide the first <li> <a> (display: none) and then simply just use (display:block ) to show the hidden <ul> <li> <a> tags. Here is the CSS you could use to hide just the first node (home) tab in a SharePoint 2010 application: Place Content Editor WebPart  and add the below code <style type="text/css"> .s4-tn li.static > a{ display: none !important; } .s4-tn li.static > ul a{ display: block !important; } </style>

Customization SharePoint 2010 - Ribbon

http://www-kga.csharpcorner.com/tags/Create-Custom-Tab-in-Office-Ribbon

Printing SharePoint WebPart content

Try the following steps. It works for most web parts (i have used this for lists) 1. Start with a web part You start by having a web part with a display of information, such as a list. If you don’t have one already you can start by creating a SharePoint Event List, and then, adding a Calendar web part (remember to choose the Calendar View). 2. Add the Print Button You will be adding a Print Button to the page, by putting the JavaScript below into a Content Editor Web Part. Add a Content Editor Web Part to the page with the web part you want to print. Open its properties and click the Source Code button to add the JavaScript code. Copy the following code directly into the Text Builder box. This code will create a “Print Web Part” button that when clicked, will execute the print action. <center><input type="button" OnClick="javascript:void(PrintWebPart())" value="Print Web Part"></center> <script language="JavaScript"> //Con