Saturday, July 7, 2012

Web Service Response Cache using VB Script (VBS) and SharePoint

I recently wanted to display data from a Web Service on a page in SharePoint using XSL.  The Web Service was external to SharePoint, which resulted in the Data View web Part being unable to obtain a valid result required to allow the XSL template to be built using features of SharePoint Designer.  A separate issue was that the method used to query the web service hosted on my external server consumed resources on the external application and took around 5 seconds to receive a response from the query.  Using a Data View web part connected directly to the Web Service to display the result would require that the data is obtained every time the page loads, impacting on server performance.

Sunday, November 13, 2011

Extend SharePoint 2010 User Interface for Lists - Ribbon, Menus & Toolbars

In my previous post, I demonstrated how to customise the User Interface for Libraries in SharePoint 2010 by adding links / custom actions in existing Menus, the Ribbon and Document Library Settings pages.
This post follows on by demonstrating how to customise the interface for different types of lists built into SharePoint 2010 by adding new custom actions to the menus and existing groups in the Ribbon.

Contents:

1. Extending the User Interface for Items
  • 1.1 Add a custom link to the List Item Menu (ECB / LIM) for an Announcements list
  • 1.2 Add a Custom Action to the “Manage” group in the Events tab of a Calendar / Events List
2. Customise the “New” menu and “New” Group on Ribbon for a Task List in SharePoint 2010
  • 2.1 Add a Link to the New menu for a Task List
  • 2.2 Add a Custom Control to the existing New Group in the Items tab on the Ribbon for a Task List
3. Add a link to the Custom Actions Group for a Links List in SharePoint 2010
  • 3.1 Add a Custom Action to the Actions Menu and “Custom Actions” tab for a Links list in SharePoint 2010
  • 3.2 Add A Custom Link to the existing “Share & Track” group on the List tab of the Ribbon for a Links List
  • 3.3 Add A Custom Link to the Manage Views Group on the List tab of the Ribbon
4. Add a link to the Settings Groups for a Calendar / Events List in SharePoint 2010
  • 4.1 Add a custom link to the Settings menu for a Calendar list in SharePoint 2010
  • 4.2 Add a Custom Action to the Settings Group on the Ribbon for a Calendar in SharePoint 2010
  • 4.3 Add a Custom Button / Link to the “Customize List” group in the Calendar tab on the Ribbon
5. Add custom links to the Settings page for a Discussion Board in SharePoint 2010
  • 5.1 Add a custom link to an existing group/heading on the Settings page for a Discussion Board in SharePoint 2010



Monday, November 7, 2011

SharePoint 2010: Extend the Document Library Menus, Ribbon and Settings Interface

In this tutorial I demonstrate how to customise the interface for Document Libraries in SharePoint 2010 using Custom Actions. I explain how to target specific types of Libraries built-in to SharePoint, and how to include additional links/actions to menus, the Server Ribbon and settings pages associated with Document Libraries.

This tutorial covers the following:

RegistrationId’s for Document Library types in SharePoint 2010
A list of Registration ID used to target specific types of Document Libraries built-in to SharePoint 2010 when adding new links / controls to the built in Interface.

1. Customise the Interface for the New Menu and Ribbon Group
  • 1.1 Add a link to the New Menu for a Document Library in SharePoint 2010
  • 1.2 Add a control to the “New” Group on the Ribbon for a Document Library in SharePoint 2010

2. Customise the Interface for the Actions Menu and Library Action Groups on the Ribbon
  • 2.1 Add a link to the Actions menu for a Document Library in SharePoint 2010
  • 2.2 Add a Control to the View Format Group on the Ribbon for a Document Library
  • 2.3 Add a Control to the “Connect & Export” group on the Ribbon for a Document Library (Document Library Actions)
  • 2.4 Customise the Share & Track Group

3. Customise the Settings Menu and Library Management / Settings Groups on the Ribbon
  • 3.1 Add a link to the Settings Menu for a Document Library in SharePoint 2010
  • 3.2 Add A Control to the Customise Library Group on the Ribbon for a Document Library
  • 3.3 Add A Control to the Settings Group on the Ribbon for a Document Library

4. Item Level Customisations to the Interface and Ribbon
  • 4.1 Add a link to the Edit Control Block (item drop-down) menu for a Document
  • 4.2 Add a Control to the “Manage” group on the Ribbon for Documents
  • 4.3 Add a Control to the “Share & Track” (Share) Group on the Ribbon for a Document Library
  • 4.4 Add a Control to the “Workflows” Group on the Ribbon for a Document Library

5. Customise the Document Library Settings Page
  • 5.1 Add a link to the Settings Page for a Document Library in SharePoint 2010



Wednesday, October 26, 2011

Tutorial: Add Custom List actions using SharePoint Designer 2010

One of the new features of SharePoint 2010 is the ability to easily add Custom Actions buttons to the Ribbon, List item menu and the built-in forms (Display, Edit and New).  This can be done with SharePoint Designer 2010 and the “Custom Actions” functionality.  In this tutorial I explain how to use this feature to add custom action buttons to various parts of the UI for lists and libraries in SharePoint 2010.

Monday, October 24, 2011

Add Custom Links to the SharePoint 2010 UI as a Feature with or without using Visual Studio

In this article, I demonstrate the process of adding a custom link and group to the UI in SharePoint as a Site Feature without using Visual Studio, as well as using Visual Studio.  

In some cases you may not have Visual Studio installed on a Server running SharePoint, or may just want to quickly add a custom link in the interface such as on the Site Settings page, or the Actions or Settings menu for a Document Library or List.  In other cases you may have a project in Visual Studio containing new functionality to be deployed to a SharePoint environment, that needs to be accessed through adding custom links to the UI.  It makes sense to deploy the custom links as part of the solution feature, so I also explain how to achieve this from a Visual Studio Project.


Apply Permissions to Custom UI Links / Actions in SharePoint Menus and Settings Pages

This post explains how to incorporate permissions into custom links and actions added to the UI on menus, toolbars and default layout pages such as the Site Settings page in SharePoint 2010.  



 
Examples included in the post are:
  • Restricting custom links on list settings pages to only site collection administrators
  • Adding custom actions to the Document Library dropdown menu (ECB - Edit Control Block) that are displayed only to users with edit permissions on the document.
  • Displaying a link on the Site Actions menu only to users with access to manage  permissions for the current site.
  • Displaying a custom link on the List Actions menu for users with access to manage the list.
  • Display a link on the Site Settings page of a site to users with access to add and customise pages on the site, as well as apply themes and stylesheets to the site (Site Designers).

Saturday, October 22, 2011

SharePoint Application Page Security

This article covers information relating to security for Application pages and page components in SharePoint:
  • Selecting the correct base class to inherit from when developing Application Pages in SharePoint
  • Securing Application pages with user permissions
  • Specifying when the CheckRights method is called to determine if a user has access to the page.
  • Programmatically check if the user has permission to access the page
  • Code Access Security (CAS) Policy for SharePoint Components