Posts Tagged ‘CodePlex’

#SharePoint You Tube web part now up on #codeplex #SP2010 #ps2010 #projectserver #MSProject

October 19, 2011 4 comments

Although I don’t get to develop as much as I would like, I do occasionally spot a need and create a web part or two.

In this case my marketing department wants to put videos that are on our company You Tube channel on to our website.

Now to the techies of the world you may be thinking.  This is easy, Content Editor Web Part, copy and paste the embed code and done.  However, if the web site is being maintained by non-technical people, things can get into a muddle pretty quickly.

As a result of this I started to look at the You Tube iFrame Embed API and found all sorts of interesting options.  So this web part provides access to most of the features found in the API.  The most interesting of which is the playlist option with a comma separated list of Video ID’s.

Take a look at the video below:

SharePoint You Tube Web Part


Hopefully other people will find it useful also.


Title: SharePoint You Tube Web Part

Versions Supported: SharePoint Foundation 2010, SharePoint Server 2010, Project Server 2010

Type: Farm Solution (Hoping to make it a sandbox solution, but was having issues…)


Have fun!


Video Showcase – Home Drive #in #SP2010

November 18, 2010 Leave a comment

SharePoint Home Drive 1.2

Provides a file explorer view to a home drive by appending the current users login name (SAMAccountName) to the UNC Path provided.
Utilised with Audiences (MOSS/SPS2010 only) this can by used based on user role.


  • Windows SharePoint Services 3.0
  • Microsoft Office SharePoint Server 2007
  • SharePoint Foundation 2010
  • SharePoint Server 2010
Categories: Work Tags: , ,

Video Showcase – Media Player #in #SP2010

November 4, 2010 5 comments

SharePoint Media Player 1.1

A web part which places a Windows Media Player object on the page to play audio / video. The web part takes into account the problem of menu’s going behind the Media Player window.


  • Windows SharePoint Services 3.0
  • Microsoft Office SharePoint Server 2007
  • SharePoint Foundation 2010
  • SharePoint Server 2010

Video Showcase – Internet Search #in #SP2010

October 31, 2010 Leave a comment

SharePoint Internet Search 1.6

A Web Part to place an Internet Search area on the page.
Extended from the original Google Search to include Windows Live (default), Google and Yahoo. Logo’s are provided as standard with configuration of your own logo’s if required.


  • Windows SharePoint Services 3.0
  • Microsoft Office SharePoint Server 2007
  • SharePoint Foundation 2010
  • SharePoint Server2010

My CodePlex Projects – Now SharePoint 2010 Compatible #in

October 26, 2010 Leave a comment

Just a quick note to say that my I have added my CodePlex projects to my blog and I have also tested them in SharePoint 2010.

I am pleased to say that they work without modification.

I will also be updating this site with video showcases for each web part as I get round to doing them.  (Probably start this weekend).

Let me know what you think.

Showing the Version column in Office as a Quick Part (Office 2007 & 2010 / Document Field (Office 2003)

October 17, 2010 5 comments

Recently in a project I have had the requirement to show the Version column within the Word document to aid document management at the company.

Why this isn’t standard functionality is anyone’s guess but this has been a “feature” of SharePoint since the beginning.

This post is going to concentrate on the various different methods available to solve this issue:

1. Use SharePoint Designer to copy the Version to a separate column

Although this works, when you open the document, the list data and the document version will be out of sync by one iteration.  This is fine if you are opening the document in read-only, but will give the impression that you are overwriting the current version in editing mode.

Issues with this approach:

  • The version will increase as the metadata gets updated via SharePoint Designer
  • Unless you have “require checkout for editing turned off” you will run into problems in the logic around check in and check out.  Ultimately it will also artificially increase the version of the document and if document approval is turned on you will never be able to publish the document.  (Constant Draft state)

2. Using the Labels feature of SharePoint.

A blog post I have found suggests using the labels feature of SharePoint.  This works but have limited formatting capabilities within the document template.

In particular, formatting must be set at the creation of the label on the server.  This results in no formatting capabilities in the Word client apart from location of the label.  It essentially creates an image on the fly when a user opens the document.

Unlike option 1 in this post, this does however work and doesn’t have adverse affects on the Version or Approval states.

Issues with this approach:

  • Word 2007 or 2010 only (Office 2003 is not supported)
    How to achieve this result (taken from the blog post linked above:
    • Enable versioning and content types on your document library.
    • Go into document library settings and select the content types you want the version to appear in.
    • Select Information management policies settings from the content type menu.
    • Select define a policy and click .
    • Click on the ‘Enable Label’ Check box
    • Do not Check the other two boxes in the Labels section.
    • In the Label Format field, enter the metadata fields in the following format:
       Version : {Version} \n
    • Set the label appearance and click on preview.
    • Click at the bottom of the page.
    • Go back to the library and create a new document using the content type you have modified.
    • Save the file as a Word 2007 format.
    • Select the insert tab
    • Select Quick Parts from the Ribbon menu and hover over document property
    • Select Label from the properties list
    • This should display the metadata defined in your label as a field in your word document. The field will update automatically when you next open the document.
    • Save.

3. Event handler to copy the version to a separate field

Using the object model, to copy the version value on Check Out of the document and upon Check In of the document.

The object model allows you to check in using the existing version number, thus getting over the artificial creation of new versions, but you will need to take into account the end users version comments when you do this. as well as the approval process.

Luckily for use someone has created a solution for us and has made it open source.  The solution is available for WSS 3.0, MOSS 2007 as well as SharePoint 2010 (Foundation and Server).

Compatibility is also available within all likely versions of Microsoft Office (2003, 2007 and 2010).

  • Quick Parts (Office 2007, 2010)
  • Fields (Office 2003)
    The solution handles Major and Minor Versioning as well as Content Approval within Document Libraries by adding the fields Current Version, Approval Version, Approval Date & Approval User.
    The only downside to this solution is that the above columns cannot be set to hidden within the content type as they will not appear in the Quick Part / Field options if this property is set.
    This results in extra fields in the Document Information Panel that end users can fill in if they desire.  However this does not affect operation since the event handler overwrites the values when they fire on Check Out and Check In.
    So basically this solution is 99% perfect and I am not sure the only downside can be fixed without client side development (in Microsoft Word).  This would cause its own headaches anyway.

As a result, this appears to be the best solution available and definitely recommend it to clients.

%d bloggers like this: