Posts

Showing posts from 2012

Sharepoint 2010 keyboard Shortcuts

Here’s the list of keyboard shortcuts – for the default ‘team site’ home page : you have to use ALT + (for example) to select the specific item – and then ENTER to do the ‘click’. / – Site Actions Menu S – Search this site – can just start typing in the Search box W – Security (login) dropdown W – Shared Documents – can tab between these items – ie. ALT+W twice X – Skip to main content (hidden link) Y – Skip Ribbon Commands 1 – Home (hyperlink) 6 – Help – the little blue question mark in top right of screen 3 – View All Site Content As mentioned, much of the need for shortcut keys is when you haven’t got a mouse – but I’m sure it could be useful for some folk – I like the ALT+3, ENTER – to go to ‘View All Site Content’ – might have to try & use that !

Create New Web Application Button Disabled in SharePoint 2010

Problem/Issue You cannot see the "New" icon enabled in the Ribbon menu, when you are trying to create any new web application or service through SharePoint 2010 central administrator. Solution:1 Start -> All Programs -> Microsoft SharePoint 2010 Products -> right click on SharePoint 2010 Central Administration -> click on Run as administrator Still the Issue occurs, follow solution 2 Solution 2: Start –> Control Panel –> System and security Now here under Action center click ” Change user account control settings” Get the scroll bar to never notify. Click on OK. Restart your system Now open the browser in “run as administrator” mode. Browse to the create web application page and the button will be enabled.

Removing This Site scope from search dropdown

Problem Many SharePoint portals require you to remove or hide the default search scope drop down list. Particularly   This Site   scope etc.. Solution If need remove this particular site in form, you can use SharePoint designer to edit master page and add following code in java script. $(document).ready(function(){ $(window).error(function(){ alert("Error"); }); $("select[id$='SBScopesDDL'] option:contains('Scope2')").remove(); $("select[id$='SBScopesDDL'] option:contains('This Site:')").remove(); }); Replace your search dropdown id in ‘SBScopesDDL’ and save, just refresh the page its works fine.

show tasks only assigned to them

Image
peoples are worried about how to shown list items are created by them only (or) only login user created items. Same like, only their assigned tasks in tasks list. here is the simple way without single line code, go to list settings and change filter either Created by [you wish to see only your created items] or Assigned To[ seeing your assigned tasks] is equal to [Me].

Sharepoint search configuration issue in Anonymus Users

Image
Recently we got issue in SharePoint enterprise search site. as it gives results well in admin account not for anonymous users. if anonymous users search the page redirect to search results page and showing search results empty.  i tried a lot of ways and finally   found that for anonymous users, content pages are not indexing. For that we enable “Always index all ASPX pages on this site” in site settings under search visibility. after run full crawl on central admin its work fine for anonymous users. if you find alignment changes in search results page for anonymous users, please ensure that search results page not published as major version. Once you publish it works like a charm.

SharePoint 2010 root directory

In this blog we will discuss about SharePoint 2010 root directory. SharePoint stores some template files in a special directory on the local file system of each front-end Web server, which is know as SharePoint root directory. It is also know as 14 hive directory in SharePoint 2010 and 12 hive directory in MOSS 2007. If SharePoint is installed in C drive then it usually will be in the below location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14 For SharePoint foundation, it contains set of images, templates, features, and pages. But if you install SharePoint server then it contains images, templates, features, and pages and some template files which provides additional functionality apart from SharePoint Foundation. Below are some sub directory and the type of template files it contains: /ISAPI: This directory contains all the Web Services (.svc, .ashx, .asmx) as well as the required dlls for SharePoint like Microsoft.SharePoint

NullReferenceException on SPWorkflowTask.AlterTask ()

In a custom task edit form for a custom content type, the following code is used to update the task item: Hashtable taskHash = new Hashtable(); taskHash["Status"] = "Approved"; taskHash["PercentComplete"] = "1"; SPWorkflowTask.AlterTask(this._taskItem, taskHash, true); This works great most of the time, however, if the custom content type defines no fieldrefs, or more specifically, the content type XML does not have the node, as could be the case if only a custom form is included in the custom content type, the following exception would be thrown on the AlterTask line: System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." Source="Microsoft.SharePoint" because there is no columns in your task list ( you should not refer any fields in your content type). So To fix this error, make sure that the node is in the content type definition XML, even whe

Create Top Navigation for SharePoint Custom Master Page

As the part of customization masterpage sometimes you need to add top level navigation with specified sites. Here is the coolest way to achieve this using aspx menu bar control. Create a visual webpart in visual studio 2010 and add aspx menu control on the user control. <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" CssClass="xxxxx"><asp:Menu> // Apply styles as your wish Take a custom list and create column [ ex:MenuUrl]   that using for url of the top navigations[Ex: https://xxxxxxx/home.aspx]. And add this list content to aspx menu on page load event as shown in below code. protected void Page_Load(object sender, EventArgs e) {   if (!IsPostBack)   { SPWeb web = SPContext.Current.Web; SPList list = web.Lists["ListMenu"]; SPListItemCollection items = list.Items; // get the list item for menu control //Title is the display name and MenuUrl refers the navigation url.