SharePoint Blog - René Hézser

Anmelden  RSS Feed RSS Feed
Startet die Suche

Archive

Kategorien

Links

Andere Blogs



Add to Technorati Favorites


Updated WikiWebpart + Tool to install it  

Dec 032007

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.

 
Posted by René Hézser | 42  Comments | Trackback Url  | 0  Links to this post | Bookmark this post with:        
Tags: Webparts, Development, SharePoint, Upload Webparts
Technorati Tags: , , ,

Links to this post

Comments

commented on  Wednesday, December 19, 2007  8:36 PM  by  Thank you!
Thanks for this web part -- it is very helpful!

commented on  Wednesday, January 30, 2008  12:56 PM  by  Das Webpart erzeugt einen Fehler
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

commented on  Wednesday, January 30, 2008  8:00 PM  by  How to enable the functionality right on page create
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?

commented on  Tuesday, February 12, 2008  11:28 PM  by  cant get this to work on my production server after migrating database
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??

commented on  Wednesday, February 13, 2008  1:20 AM  by  Thanks, and question
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.

commented on  Friday, February 22, 2008  6:06 PM  by  embedding in wiki article
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...

commented on  Wednesday, April 02, 2008  4:05 PM  by  error on running addwikiwebpart
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)

commented on  Thursday, April 17, 2008  6:44 PM  by  Websitefeatures
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

commented on  Friday, April 18, 2008  7:37 PM  by  AW: Updated WikiWebpart + Tool to install it
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é

commented on  Friday, April 18, 2008  7:41 PM  by  AW: Updated WikiWebpart + Tool to install it
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é

commented on  Friday, April 18, 2008  7:42 PM  by  re: cant get this to work on my production server after migrating database
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é

commented on  Friday, April 18, 2008  7:45 PM  by  re: Thanks, and question
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é

commented on  Friday, April 18, 2008  7:52 PM  by  re: embedding in wiki article
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é

commented on  Sunday, April 20, 2008  11:46 AM  by  re: error on running addwikiwebpart
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é

commented on  Tuesday, April 22, 2008  4:05 PM  by  article creation and img inserting at the same time
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 ?

commented on  Tuesday, April 22, 2008  9:30 PM  by  re: article creation and img inserting at the same time
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é

commented on  Thursday, April 24, 2008  8:56 PM  by  Error Message while uploading a picture
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

commented on  Sunday, May 04, 2008  11:35 AM  by  AW: Updated WikiWebpart + Tool to install it
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é

commented on  Monday, August 11, 2008  9:56 PM  by  Compatibility with SharePoint Community Kit
Rene, sounds like a great feature for a SharePoint wiki! Do you know if it's compatible with the CKS:Enhanced Wiki?

commented on  Wednesday, August 13, 2008  10:09 AM  by  re: Compatibility with SharePoint Community Kit
Hi,
I have not tried, because I am not using the CKS:Enhanced Wiki. But I guess it should work.

René

commented on  Monday, August 25, 2008  10:02 AM  by  Aktivieren nicht möglich
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

commented on  Monday, August 25, 2008  1:43 PM  by  re: Aktivieren nicht möglich
Hallo Igor,
nicht in den Farmfeatures, sondern in der Zentraladministration unter Vorgänge, Lösungsverwaltung.
Dann in der Sitecollection das Feature aktivieren.

Gruß
René

commented on  Monday, August 25, 2008  5:13 PM  by  re: re: Aktivieren nicht möglich


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

commented on  Wednesday, September 10, 2008  6:19 AM  by  livePoint Q
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

commented on  Thursday, September 11, 2008  4:04 PM  by  Source code for RH.WikiWebpart.wsp
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

commented on  Thursday, September 11, 2008  7:18 PM  by  re: Source code for RH.WikiWebpart.wsp
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é

commented on  Tuesday, September 16, 2008  1:35 AM  by  reposition upload buttons
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

commented on  Friday, November 07, 2008  2:34 PM  by  Error after pressing upload button
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

commented on  Saturday, November 08, 2008  8:56 AM  by  re: Error after pressing upload button
Hi,
please install the .NET Framework 3.5 (SP1).

René

commented on  Monday, November 10, 2008  8:28 AM  by  re: Error after pressing upload button
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

commented on  Friday, November 14, 2008  8:16 PM  by  Getting the following error
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



commented on  Friday, November 14, 2008  11:35 PM  by  One or more features must be turned on before this feature can be activated.
I am also getting this error.


commented on  Saturday, November 15, 2008  12:19 AM  by  Only One Solution is Installed
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

commented on  Tuesday, November 18, 2008  3:34 PM  by  One or more features must be turned on before this feature can be activated.
To increase the pressure: I am getting the same error as the three posts above...
Thanks for your help,
Steffen

commented on  Tuesday, November 25, 2008  10:19 PM  by  AW: Updated WikiWebpart + Tool to install it
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é

commented on  Thursday, November 27, 2008  9:05 AM  by  Ein Bug beim Hochladen-Button
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

commented on  Friday, March 06, 2009  3:44 PM  by  Philipp
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??

commented on  Friday, March 06, 2009  7:42 PM  by  René Hézser
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é

commented on  Wednesday, May 27, 2009  2:11 PM  by  marc
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

commented on  Wednesday, May 27, 2009  7:24 PM  by  René Hézser
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é

commented on  Monday, June 08, 2009  10:52 AM  by  marc
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

commented on  Wednesday, June 10, 2009  7:19 PM  by  René Hézser
Hallo Marc,
vielleicht hilft uns ja die nächste Version.

Gruß
René

Name *:
URL:
Email:
Kommentar:


CAPTCHA Image Validation