Updated WikiWebpart + Tool to install it

Updated WikiWebpart + Tool to install it

I updated my WikiWebpart. You can now download it as a SharePoint Solution.

Steps to install the solution:

  1. Install the solution via "stsadm -o addsolution -filename RH.WikiWebpart.wsp"
  2. Go to your "Central Administration > Operations" and deploy the solution

  3. Active the Feature for your Sitecollection
    Go to "Site Actions > Site Settings > Site Collection Administration > Site collection features" and active the feature
Add the Webpart to your Wiki library

Now you are done. You can add the Webpart to any Wiki library you like. To make this process easier, I wrote a little tool for it. You call it with the weburl and the Wiki library name as parameters.
RH.AddWikiWebpart.exe http://sharepointurl/somewikipage "Wiki Pages"

Done.

One more note. Right now the Webpart only displays english text. When I find a solution to add the resource assemblies for german, I will update the Webpart.

If you have previously installed the Webpart manually, remove it from all Wiki library EditForm.aspx, from the Webpart gallery, and from your web.config and bin folder.

Update:

Multilanguage Support is back 😉
You can download the solution and update it via
"stsadm -o upgradesolution -name RH.WikiWebpart.wsp -filename RH.WikiWebpart.wsp -immediate"

Update 23. Apr 2008:

I have released a new version. Bugfixing only.

Update 5. Jul 2008:

A new version with support for uploading files additionally to pictures.

42 Comments

Thank you!

Reply

Thanks for this web part — it is very helpful!

 

Das Webpart erzeugt einen Fehler

Reply

Hallo,

das Webpart ist genau wonach ich gesucht habe. ich habe das Webpart installiert und mit dem Tool in eine bestehende Wikiseite eingefügt. Wenn ich jetzt eine Wikiseite bearbeiten möchte, erhalte ich einen Fehler und gelange zur Webpartwartung. Wenn ich dort das Wikiwebpart lösche funktioniert das Berarbeiten wieder.
Was kann das sein? Vielleicht eine Idee was ich falsch gemacht habe?
Dank im Voraus.
Gruß Oliver

 

How to enable the functionality right on page create

Reply

I’m confused with obtaining the web part insertion aspx code to insert it into CreateWebPage.aspx file and thus enable this control even when the page is created. Please answer what is your great web part aspx code?

 

cant get this to work on my production server after migrating database

Reply

Hey I had a sharepoint test server setup, and had this webpart working (which is very helpful btw), but I recently migrated the database to a new production server, and the sharepoint site itself works, but when this webpart is active and I call the editform page, I get an error and dont get to edit the wiki entries. When I go to the site settings -> web part gallery -> and click on the WikiWebpart I get the following error “Request for the permission of type ‘Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ failed. ”

any ideas??

 

Thanks, and question

Reply

I installed without error, and was able to upload one image.

However:

– the image was originally a color jpg, but in SP it is grayscale.

– when I exit/save the wiki entry, then go back in and edit, and attempt to upload a second image, I get this:

Error (UploadFile): System.IO.DirectoryNotFoundException: There is no file with URL ‘Picture Library/arrow_right.jpg’ in this Web. at Microsoft.SharePoint.Library.SPRequestInternalClass.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage) at Microsoft.SharePoint.Library.SPRequest.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage) at Microsoft.SharePoint.SPFileCollection.AddInternal(String urlOfFile, Object file, PutFileOpt fileOpt, String createdBy, String modifiedBy, Int32 createdByID, Int32 modifiedByID, DateTime timeCreated, DateTime timeLastModified, Object varProperties, String checkInComment, SPVirusCheckStatus& virusCheckStatus, String& virusCheckMessage) at Microsoft.SharePoint.SPFileCollection.Add(String urlOfFile, Byte[] file, Boolean overwrite, String checkInComment, Boolean checkRequiredFields, SPVirusCheckStatus& virusCheckStatus, String& virusCheckMessage) at Microsoft.SharePoint.SPFileCollection.Add(String urlOfFile, Byte[] file, Boolean overwrite, String checkInComment, Boolean checkRequiredFields) at Microsoft.SharePoint.SPFileCollection.Add(String urlOfFile, Byte[] file) at RH.WikiWebpart.UploadFile(SPWeb web)

Any ideas? Thanks.

 

embedding in wiki article

Reply

What I don’t have with the webpart is the possibility to upload the picture and at the same time place the picture in the wiki article, right? An integration like the one in the content editor webpart…

 

error on running addwikiwebpart

Reply

Hi !
I get following error on running Addwikiwebpart.
Im running it on the server logged on as Admin.
Deploying the solution did work.
Any suggestions ?

Thanks for your help.

C:>rh.addwikiwebpart.exe “http://offset5/websites/intranet/edv/Wiki Seiten” “IT
– Wiki”
Connection to site ‘http://offset5/websites/intranet/edv/Wiki Seiten’
Connecting to list ‘IT – Wiki’
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0
x80070005 (E_ACCESSDENIED))
at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(Unauthoriz
edAccessException ex)
at Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(String bstrUrl
, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBase
TypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags
, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData,
ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount)
at Microsoft.SharePoint.SPListCollection.EnsureListsData(Guid webId, String s
trListName)
at Microsoft.SharePoint.SPListCollection.EnsureListsData(String strListName)
at Microsoft.SharePoint.SPListCollection.GetListByName(String strListName, Bo
olean bThrowException)
at Microsoft.SharePoint.SPListCollection.get_Item(String strListName)
at RH.Program.Main(String[] args)

 

Websitefeatures

Reply

Hallo,

erstmal vielen Dank für die Entwicklung dieses Tools. Ich habe leider Probleme bei der Installation in MOSS2007. Nachdem ich die Solution in der CA erfolgreich deployed habe, taucht sie aber nicht in den Websitefeatures auf um sie zu aktivieren. Woran könnte das liegen???

Danke und Gruß

Stephan

 

AW: Updated WikiWebpart + Tool to install it

Reply

Quote:
Hallo,

das Webpart ist genau wonach ich gesucht habe. ich habe das Webpart installiert und mit dem Tool in eine bestehende Wikiseite eingefügt. Wenn ich jetzt eine Wikiseite bearbeiten möchte, erhalte ich einen Fehler und gelange zur Webpartwartung. Wenn ich dort das Wikiwebpart lösche funktioniert das Berarbeiten wieder.
Was kann das sein? Vielleicht eine Idee was ich falsch gemacht habe?
Dank im Voraus.
Gruß Oliver
—————————————–

Hallo Oliver,
es freut mich dass dir das Webpart gefällt 😉
Hast du in deiner web.config den trustlevel auf “Full” gesetzt?

Gruß
René

 

AW: Updated WikiWebpart + Tool to install it

Reply

Quote:
I’m confused with obtaining the web part insertion aspx code to insert it into CreateWebPage.aspx file and thus enable this control even when the page is created. Please answer what is your great web part aspx code?
——————————————–
Hi,
sry. But I don’t understand your question. Do you want to know how you can add a Webpart to an EditForm.aspx for a list?
If so, “SPLimitedWebPartManager” is your friend 🙂

René

 

re: cant get this to work on my production server after migrating database

Reply

Quote:
Hey I had a sharepoint test server setup, and had this webpart working (which is very helpful btw), but I recently migrated the database to a new production server, and the sharepoint site itself works, but when this webpart is active and I call the editform page, I get an error and dont get to edit the wiki entries. When I go to the site settings -> web part gallery -> and click on the WikiWebpart I get the following error “Request for the permission of type ‘Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ failed. ”

any ideas??
——————————————-
Hi,
you have to set the trustlevel in your web.config to “Full”.

René

 

re: Thanks, and question

Reply

Quote:
I installed without error, and was able to upload one image.

However:

– the image was originally a color jpg, but in SP it is grayscale.

– when I exit/save the wiki entry, then go back in and edit, and attempt to upload a second image, I get this:
…..
—————————————–
Hi,
the Webpart doesn’t change the picture. It just uploads it. But I will look into your issue.

René

 

re: embedding in wiki article

Reply

Quote:
What I don’t have with the webpart is the possibility to upload the picture and at the same time place the picture in the wiki article, right? An integration like the one in the content editor webpart…
————————————
Hi,
you can upload a picture, the page reloads and your picture is in your wiki entry. Then you can drag it to another position within the entry.

René

 

re: error on running addwikiwebpart

Reply

Quote:
Hi !
I get following error on running Addwikiwebpart.
Im running it on the server logged on as Admin.
Deploying the solution did work.
Any suggestions ?

Thanks for your help.

—————————————————–
Hi,
is your administrator the SharePoint Service Account? Try using a different account, which has more rights on that particular list/site.

René

 

article creation and img inserting at the same time

Reply

As far as I understand this webpart allows me to upload and insert the image while editing the page (thanks to the new webpart in editform.aspx).
But Sharepoint does not use editform.aspx to create new pages but _layouts/CreateWebPage.aspx
question is : do I have to first create the page without images and then edit it to insert the image or is it possible to use your webpart while creating the page ?

 

re: article creation and img inserting at the same time

Reply

Hi,
you are correct. You’ll need to create a new page first. The reason is, that I can not change an item if it does not exist yet.

René

 

Error Message while uploading a picture

Reply

Hi,

Even if I’m not able to test your webpart yet I’m shure this is a real helpful functionality. But I’ve got some problems:

While uploading a picture to my wiki-page, your web-part throws the following error message:

Error (UploadFile): System.ArgumentException: Value does not fall within the expected range. at Microsoft.SharePoint.SPListCollection.GetListByName(String strListName, Boolean bThrowException) at Microsoft.SharePoint.SPListCollection.get_Item(String strListName) at RH.WikiWebpart.UploadFile(SPWeb web)Error (getWikiSites): Value does not fall within the expected range

My settings:

SharePoint 2007
web.config trust level = wss_medium [“full” is not supportet]
The wikiwebpart is uploaded to a site collection and used in a first-level subsite.
Adding the webpart to my EditForm.aspx was successful

So my question is: what is the “expected range of value” of your webpart. The name of my Wiki-Library contains a space like “word1 word2” Could this be the reason? (But a test with a single word titled wiki-library throws the same error).

Thanks for your help and best reguards,
Patrick

 

AW: Updated WikiWebpart + Tool to install it

Reply

If there are still problems uploading the images, please let me know what names you used for wiki/picture library. I tested with every possibility I could imagine, and it works fine.

René

 

Compatibility with SharePoint Community Kit

Reply

Rene, sounds like a great feature for a SharePoint wiki! Do you know if it’s compatible with the CKS:Enhanced Wiki?

 

re: Compatibility with SharePoint Community Kit

Reply

Hi,
I have not tried, because I am not using the CKS:Enhanced Wiki. But I guess it should work.

René

 

Aktivieren nicht möglich

Reply

Hallo,

dieses Tool scheint genau das zu sein was ich benötige, jedoch habe ich folgende Probleme bei der Installation:
Ich führe den Befehle mit stadm aus, das klappt, es taucht unter Solutions auf. Anschliessend stelle ich es bereit. Nach der o.g. Anleitung müsste ich es jetzt in “farmfeatures verwalten” finden. Jedoch taucht es nicht auf.
Woran kann das liegen? Danke für die Antwort im Vorraus.

Mit freundlichen Grüßen
Igor Berger

 

re: Aktivieren nicht möglich

Reply

Hallo Igor,
nicht in den Farmfeatures, sondern in der Zentraladministration unter Vorgänge, Lösungsverwaltung.
Dann in der Sitecollection das Feature aktivieren.

Gruß
René

 

re: re: Aktivieren nicht möglich

Reply

Ich bins nochmal. Also ich bin jetzt bei diesen Punkt:
“Active the Feature for your Sitecollection
Go to “Site Actions > Site Settings > Site Collection Administration > Site collection features” and active the feature”
hier taucht nichts auf. Auf den Bild unter den o.g. text kann man einen Button sehen. Dies ist alles bei mir nicht vorhanden.

Unter Zentraladministration, Vorgänge, Lösungsverwaltung habe ich es bereits “Bereitgestellt” !

MfG
Igor

 

livePoint Q

Reply

Hi,
This is a great product, thank you for making it so easily available.

I have a question in regards to its functionality. I’m probably not using it correctly so need some pinters.

Do you have a user doc for this product?

So I have installed it and can use it fine. I created a Wiki site and on the home page have set up the webpart. I can upload docs and images straight to the respective library. But how do I add the pic or doc straight to the new wiki i have created?

thanks in advance

Armando

 

Source code for RH.WikiWebpart.wsp

Reply

René, we love your Upload webpart but without the source, our network security people will not allow us to register it on the server. Are you considering to share the source?

ps.: This is standard procedure, nothing personal. Security folks never trust anybody :))

Pierre Landriault
Canada

 

re: Source code for RH.WikiWebpart.wsp

Reply

Hi Pierre,
right now I am not uploading the Sources. But if you hang on a while, I might do so.
I am trying to modify the Wiki entry on the fly without reloading it after you have uploaded an image/document. If I succeed, I will share the Sources as well. Promised 🙂

René

 

reposition upload buttons

Reply

Hi, thank you for the web part. I guess I am also asking for the source, because although we really like the functionality, we want to reposition the upload buttons somewhere more intuitive. If we have a really long wiki, the user has to scroll all the way to the bottom in order to use your web part.

SR
USA

 

Error after pressing upload button

Reply

Hello, I installed the Webpart and everything looked fine, but when I pressed the upload button I retruieved the following error:
Error (_button_ServerClick): System.IO.FileNotFoundException: Could not load file or assembly ‘System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified. File name: ‘System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ at RH.WikiWebpart.InsertLinkIntoWiki(SPWeb web, String filename, FileType fileType) at RH.WikiWebpart._button_ServerClick(Object sender, EventArgs e)

Anyway, the file seems to be uploaded to the named picture library. But the error is now displayed in the webpart on all pages, where it was implemented.

Any idea how to resolve this issue?? Thanks in advance

 

re: Error after pressing upload button

Reply

Hi,
please install the .NET Framework 3.5 (SP1).

René

 

re: Error after pressing upload button

Reply

Hi Rene,
thanks that was the solution. Now it works, looks fantastic. Thanks a lot for sharing this.
May an idea for the next version would be a dialog to add a link to another sharepoint item 🙂
Thanks again. best regards Christian

 

Getting the following error

Reply

Any help would be appreciated!! thanks!
——————

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

 

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

Reply

I am also getting this error.

 

Only One Solution is Installed

Reply

I just realized that the only solution installed is the RH.Wiki Picture/Document Upload.

I don’t get the RH.Wiki Picture/Document Upload Webpart.

I must be missing a step, but I’m not sure where. Can you help?

Thanks, Donna

 

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

Reply

To increase the pressure: I am getting the same error as the three posts above…
Thanks for your help,
Steffen

 

AW: Updated WikiWebpart + Tool to install it

Reply

Please see http://www.hezser.de/blog/Lists/Beitraege/Post.aspx?ID=118
and activate the feature on the site collection, prior to activate it on the web.

René

 

Ein Bug beim Hochladen-Button

Reply

Hallo,

erstmal ein riesengroßes Danke für dieses Add-In. Habe es erfolgreich einbinden und schonmal nutzen können. Jedoch habe ich anscheinend einen Bug gefunden: Und zwar wenn man ohne einen Pfad anzugeben auf den Hochladen Button drückt kommt folgende Fehlermeldung:

“Fehler (_button_ServerClick): System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei RH.WikiWebpart._button_ServerClick(Object sender, EventArgs e)”

Und diese Fehlermeldung geht erst weg wenn man den IIS neustartet was ziemlich lästig ist.

Btw.: ist absehbar, dass dieses Add-In auch schon beim Erstellen einer Seite benutzbar gemacht werden kann?

Grüße
DeBing

 

Philipp

Reply

Hi,

nice webpart, but in my server’s eventlog I have the event ID : 6611,

Fehler beim laden der Assembly WikiWebpart

what went wrong on installation?! I tried to remove the solution but then I cannot edit any wikipage anymore…

what’s teh way to remove the webpart??

 

René Hézser

Reply

Hi Philipp,
please disable the feature in your wiki library settings. Then deactivate the feature on your web, and your sitecollection.
You can use my custom field type (latest blog post), which will allow you to upload files during the creation of a new wiki page.

René

 

marc

Reply

Hallo René

Danke für das super Tool. Habe es Erfolgreich implementiert.

Nun kommt die Frage auf, was ist, wenn ich mehrere Bilder auf einmal Hochladen möchte?

Oder gibt es eine Möglichkeit, ein Word, PDF dokument via Tool hochzuladen, bei welchem dann die Bilder und der Text extrahiert werden und der Text mit dem Bildern in die WIki Seite einfügt. Das wäre die “geilste” Lösung

Gruss marc

 

René Hézser

Reply

Hallo Marc,
gerne 🙂

Statt dem WikiWebpart kannst du auch mein Custom Field nutzen. Das ist flexibler.
http://www.hezser.de/blog/archive/2009/02/25/custom-field-–-upload-files-and-images.aspx
Einen Mehrfachupload werde ich wohl nicht implementieren. Das ist zu viel Arbeit. Sorry.

Gruß
René

 

marc

Reply

Also René

Das Custom Field habe ich auch implementiert und es funktioniert wunderbar.

Nur stehe ich immer noch vor meiner “Idee”, dass der Inhalt des Dokuments, welches ich hochgeladen habe, in die Wiki-Seite fliesst und nicht als Datei hochgeladen wird. Habe da schon versuch via Blog ein Word-Dokument zu veröffentlichen und dann den Inhalt in eine Wiki-Seite zu kopieren. Nur diese Blog-Funktion müsste man irgendwie ins Wiki bringen.

Aber trotzdem Danke.

Gruss Marc

 

René Hézser

Reply

Hallo Marc,
vielleicht hilft uns ja die nächste Version.

Gruß
René

 

Leave a Reply