Andrew Connell [MVP SharePoint]
1579 Posts |  42 Articles |  4864 Comments
.NET  |  MCMS  |  SharePoint  |  Office System
SharePoint Quick Links
Article Categories
Archives
Post Categories


Add to Technorati Favorites

A while back in the WSS v2 days, Todd Bleeker blogged how you can use some of the OOTB JavaScrcipt functions to switch a page into edit mode or show the Web Part toolpane. When would you need this? Well, were you aware that the new/edit/display forms are just Web Part Pages? You can usually add Web Parts to those pages as they typically already contain Web Part zones!

I've become so reliant on that post that I have to keep going back to it... even have it copied into a OneNote file. Anyway, last week at a client site someone asked a question where this was needed so I finally got fed up with the "hunt-&-peck" and made it much easier to use.

I give you the SPClientUtilities Feature. This feature only does two things:

  1. Add a new menu item to the Site Actions menu that lets you toggle into edit mode on any page (except application pages... those within /_layouts... those pages can't be customized so the menu items if clicked on that page will throw a JS error).
  2. Add a new menu item to the Site Actions menu that lets you turn on the Web Part toolpane on any page (same limitation as above with application pages).

Only users with rights to customize the page will see the menu items. Here's what it looks like once activated:

SiteActions

Ever need to add a Web Part to the new form on a Tasks list? Now you can (very easily):

Tasks

I've packages this puppy up in two formats. The first is a nice little WSS solution package... just add this guy to the solution store and deploy OR manually copy the Feature into the 12 hive.

» SPClientUtilities.wsp (WSS solution package installer)
» SPClientUtilities Feature

Again, full credit for figuring this solution out goes to Todd Bleeker's post. All I did was Feature-ize it!

» Two Invaluable Windows SharePoint Services (WSS) Shortcuts

Technorati tags:
posted on Wednesday, May 02, 2007 10:26 AM

Feedback

# re: SPClientUtilities - toggle edit mode or show tool pane anywhere 5/3/2007 5:27 AM k0d
Gravatar Its there any installation instructions!?

# re: SPClientUtilities - toggle edit mode or show tool pane anywhere 5/3/2007 8:25 AM AC [MVP MOSS]
Gravatar K0d-
As I said, add it to the solution store (STSADM.EXE -o addsolution ...) and then deploy it. Once that's done, you'll activate it as a site collection feature.

Post Feedback

Title:
Name:
Email:
(email will not be displayed)
Url:
Comments: 
Please add 2 and 1 and type the answer here:    
All Comments Are Filtered & Moderated
Unfortunately comment spammers are just too effecient and are constantly dirtying up blogs with irrelevant and unwanted comments trying to improve their standing on search engines. All comments on this blog are moderated. I do not censor comments, but I don't approve comments with vulger language or those soliciting products. Most of the time comments are approved within a few hours of being submitted with the only exception when I'm traveling.

Why are you asking for my email address?
The only reason I'm asking for your email address, which isn't required to submit a comment, is to provide a gravatar if you've created an account for yourself and associated your email address with a small image. If you have a gravatar created for the email address you submit, it will appear next to your comment. Otherwise nothing will appear.

What is a gravatar?
A gravatar is a "globally recognized avatar." You can get more information about gravatars, as well as create your own for free, at www.gravatar.com. You can also view my gravatar here.


Copyright © 2003 - 2010 Andrew Connell
Creative Commons License 
This work is licensed under a Creative Commons License
Site design by Heather Solomon.

 
 
MOSS WCM Training
Looking for MOSS 2007 WCM developer training? Look no further! I teach my 5-day hands-on and online WCM classes for developers I offer through my company: Critical Path Training.

Get more information on the WCM courses!