Supernova’s Mission

Supernova’s mission is to share our people’s stories, ideas, discoveries, and solutions.

Archives

Using PowerShell to Update Content Editor Web Parts

Written by: Johnny Bouder

Have you ever been in a situation where you needed to programmatically update the content in Content Editor Web Part (CEWP)? Maybe you added some HTML that is breaking your page or maybe you’re moving your content to another domain and you have some hard coded links in your CEWP’s.

Well it turns out that it isn’t really that hard. In my situation we were working with the latter scenario above and within our environment we have many administrators who have created hard coded links within CEWP’s and in order to streamline the upgrade process I thought I would create a PowerShell script…

Upgrading SharePoint 2007 Visual Studio Projects

Written by: Johnny Bouder

This blog post will outline the steps required to upgrade a SharePoint 2007 Visual Studio Project to a SharePoint 2010 Visual Studio Project using the VSeWSS Import Tool for Visual Studio 2010 (http://archive.msdn.microsoft.com/VSeWSSImport). The tool is kind of old at this point, but it is still very useful and I haven’t found a better tool.

This post will be helpful to you if you have created custom SharePoint 2007 solutions using the VSeWSS Visual Studio extensions. The tool above can be used to easily upgrade these projects to SharePoint 2010 projects. This post should be especially useful if you are upgrading existing SharePoint 2007 sites to SharePoint 2010 that already have these Web Parts added and you would like the ability to add additional modifications to these projects.

Installing the VSeWSS Import Tool

The VSeWSS tool is actually provided as a Visual Studio Project, which needs to be compiled in order to build the executable to install the tool into Visual Studio. One other thing to note is that in order to open the solution in Visual Studio 2010, you need to install the Visual Studio 2010 SDK (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&displaylang=en). Why this isn’t included in Visual Studio by default is beyond me. Or why it is not mentioned in the VSeWSS Import Tool installation instruction is also beyond me.

So basically, install the SDK, and then follow the instructions to install the new project type.

Importing Your Projects

To get started you want to copy any old Visual Studio project directories over to computer where you will be writing your Visual Studio 2010 solutions.

Once you have your old projects ready and have everything installed go ahead and fire up Visual Studio 2010. Click New Project and you will now have a new project template called Import VSeVSS Project (if the installation went well). See below:

Screen shot of 'New Project' window, project template Import VSeVSS Project

Persistent SharePoint 2010 Site Columns

Written by: Chris Lincoln

Site Columns and Site Content Types are a great feature of SharePoint.  They’re easy to create/modify and provide granular configuration capabilities.  It’s commonly known that the Title Site Column can’t be removed from Site Content Types (or List Content Types, for that matter); it’s attached to the Item Base Content Type, after all.

But did you know that there are many Site Columns that can’t be removed from Site or List Content Types?

Edited screenshot of SharePoint 2010 "Change Content Type Column" form

But did you know that there are many Site Columns that can’t be removed from Site or List Content Types?

SharePoint 2010: Query String Mayhem

Written by: Chris Lincoln

Do you have a customized SharePoint page that uses the query string variable “ID” to identify a List Item by its ID value? Did SharePoint throw an error that “no item exists at” that location? Are you certain it exists?

Sample SharePoint "no item exists" error message

If you answered “yes” to each of the above questions, switch your query string variable name from “ID” to something -anything- else.

SharePoint 2010 apparently reserves “ID” for peculiar usage and therefore cannot be used as freely as with SharePoint 2007.

Customizing SharePoint 2010 Ribbon UI: Lessons Learned

Written by: Lee Kohn

One of the SharePoint 2010 solutions we at MetroStar have been developing has involved some customizations of the Ribbon UI.  After several days learning (and fighting) the Ribbon I’ve learned a few things which may be of some use to other SharePoint developers out there: Adding elements to the Ribbon involves a pretty straight forward

SharePoint Saturday New York City

Written by: Derek Yale

SharePoint Saturday New York City is being held July 31st this year at the Microsoft Manhattan Office. The event is well-known for its lively atmosphere, invaluable presentations, and for its high attendance of SharePoint professionals and MVPs. A full day of networking, knowledge sharing, and everything SharePoint all at no cost to its attendees? At

Customizing the SharePoint 2010 Ribbon UI

Written by: Lee Kohn

Here are some handy links if you are interested in customizing SharePoint 2010′s ribbon UI: http://sharepointegg.blogspot.com/2010/02/remove-button-from-ribbon-in-sharepoint.html http://msdn.microsoft.com/en-us/library/ff407290.aspx Also if you need to find the IDs/Locations etc… of existing elements in the ribbon you can find them in this file: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\CMDUI.xml -Lee

Migrating SharePoint Solutions from 2007 to 2010

Written by: Lee Kohn

Today I had the pleasure of taking a SharePoint solution which had been built against 2007 and migrating it to 2010.  The whole process went much smoother than I had originally thought although I did learn a couple of things: Anything stored in the session state must be marked as serializable This was simply an oversight in

Notes from the 2010 Microsoft MVP Global Summit

Written by: Mostafa Elzoghbi

Hello Everyone, I’d like to share some of the experiences I had at the 2010 Microsoft MVP Global Summit which was held from 16-19 Feb 2010 in Seattle, WA. This year’s summit was exciting for MVPs as some big announcements for new products at Microsoft such as Windows 7, Visual Studio 2010, SharePoint 2010, Mobile