Wiki Webpart 2.0

Wiki Webpart 2.0

The next generation Wiki Webpart is there! Sounds good J The (stupid) name remains, but the core has changed.

What is it?

With the Wiki Webpart you can upload images and documents from a Wiki edit page into existing picture/document libraries. After the file has been uploaded, a link will be inserted into the Wiki Content.

This is either a <img> or a <a> tag, depending on the uploaded file.

How does it work?

After uploading the image/file, it will be put into your Wiki Content via JavaScript. There is no reload of the Wiki page required any more.

Why can’t I upload files when I create a new Wiki Page?

Because MS decided to change the normal "NewForm" behaviour in Wiki libraries. Unlike in lists/document librariew a new item is created through "_layouts/CreateWebPage.aspx" and not the NewForm.aspx. And since this one is not unique for the Wiki library, I can not adjust it.


.NET 3.5 (SP1) on all of your frontend servers 


The Wiki Webpart comes as a SharePoint solution (wsp file), which will be installed on your SharePoint farm via "stsadm -o addsolution -filename WikiWebpart.wsp".

The solution contains two features.

One has to be activated on site collection level (it will allow you to use the Webpart).

The second feature has to be activated on each web, where you want to use the Wiki Webpart.

After the features have been activated, there is a new entry in the General Settings of a Wiki library.

Enabling the Webpart in the Wiki properties will add the Webpart to the EditForm of your Wiki library. Disabling it, will remove the Webpart. There is no need to add the Webpart with the console application anymore!

Upgrade from previous version:

If you already have an older version installed, the installation steps are similar.

  • stsadm -o upgradesolution -filename RH.WikiWebpart.wsp -name RH.WikiWebpart.wsp -immediate –allowgacdeployment

After upgrading the solution, you have to retract and redeploy it in the central administration. This step is necessary, because the features within the solution have changed!

Update 30. Nov 2008:
A small bugfix release.


Instead of this solution you can use my Custom Files and Images Upload Field.

If you want to use it, please make sure you disable this feature on the wiki, the web and on your sitecollection.


For all the (security) guys who wanted the source code, you can get it now.

Download solution

Download source code




WSS 3.0


Will this web part work with WSS 3.0, or does it require the full blown MOSS 2007? Thanks! Looks very good.

Tom Winter


re: WSS 3.0


Hi Tom,
WSS V3 would be enough 🙂



Error message


I have the webpart installed and activated but when I attempted to upload an image I received the following error:

Error (_button_ServerClick): System.IO.FileNotFoundException: Could not load file or assembly ‘System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified. File name: ‘System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ at RH.WikiWebpart.InsertLinkIntoWiki(SPWeb web, String filename, FileType fileType) at RH.WikiWebpart._button_ServerClick(Object sender, EventArgs e)

Any suggestions? Thanks for developing this much-needed enhancement and thanks in advance for your help.


Can not activate?


Hi, Thanks for the solution.

I have ran “stsadm -o addsolution -filename WikiWebpart.wsp” and everything seems ok, said it has completed. But I am having a hard time finding where to enable this feature?

Can you point me to this. thanks!


AW: Wiki Webpart 2.0


Getting the following error when trying to activate.
Any help would be greatly apprecited! thanks!!!

Required Features

One or more features must be turned on before this feature can be activated.

RH.Wiki Picture/Document Upload Webpart
With this Webpart you can upload pictures/documents directly to your Wiki


re: Error message


Please install the .NET Framework 3.5 (SP1)


re: Can not activate


Please see this post:



re: AW: Wiki Webpart 2.0


Please read this post:



Wiki Webpart 2.0


René thanks for the response, i have read that article and i was just wondering what are the required “Activations” to get your webpart to activate?

I am still getting the “One or more features must be turned on before this feature can be activated. ” when i try to activate it on the website level. There is no where i can activate it on the farm level.

Thanks for your help!


Use of this webpart.


René good effort on this wiki webpart!

One question, I am just testing this webpart and it seems to only add this webpart in “Edit” mode and not “Create”. What is the point in the two step process? Why would someone add a doc and edit it inorder to upload image/doc?

As well after uploading it, how does someone reference it in the document? Imean we are just uploading pictures with no reference to them. It would be more useful if this webpart actually associated the uploaded images in the document being created or edit.




Hi René!
Great Webpart!
Is there a way to insert images in Custom Lists (e.g. in a rich-text-column)?


René Hézser


Hi Robert,
please take a look at my last “Update”. There is a link to my custom field type. Maybe it can help you.





Thanks for sharing source code ! It allowed me to port your webpart to .Net framework 2.0. It’s a great webpart empowering the wiki library.


René Hézser


Hi Maxime,
instead of this webpart, you could use my custom field type. It is more flexible.





Right, that’s in fact what I did to allow upload in discussion lists too 😉

Porting them to .NET 2.0 wasn’t too hard :p

Anyway, thank you very much, your work is very appreciated.





just tested the webpart, installation and activation succeeded. Now I have a question:
The section in you explanation

“After the features have been activated, there is a new entry in the General Settings of a Wiki library”

does not fit my view, there is no new entry like mentioned above… What went wrong? What can I do about it?

Kind regards


René Hézser


Hi Stephan,

Instead of this solution you can use my Custom Files and Images Upload Field.”

If you want to continue using the Webpart, make sure you activated both features!





Can I change what image library the uploader saves the files to


René Hézser


Hi Kez,
you can change the library in the Webpart properties.





I had same problems with activation with this webpart but then I tried the Custom Files and Images Upload Field solution and this works great.
Tnx René!!!




hallo Rene,
habe die 2.0 installiert, aktiviert – soweit ok. Aber die Schalflächen erscheinen auf dem wiki nicht. dotnet 3.5 ist installiert.
Idee, woran das liegt?
danke, Erik


Leave a Reply