SharePoint Blog - René Hézser

Anmelden  RSS Feed RSS Feed
Startet die Suche

Archive

Kategorien

Links

Andere Blogs



Add to Technorati Favorites

Feb 062010
Jul 132009

Update: Custom Field – Upload Files and Images

Inserted links are now relative.

Go to the original post for more information and the download link.


Published: 7/13/2009  5:50 PM | 0  Comments | 0  Links to this post
Tagged as: Development, SharePoint, Upload Webparts

Feb 252009

Custom Field – Upload Files and Images

If you know my WikiWebpart or DiscussionListUploader, you know that there are some occasions where you want to upload a file, and place a link to it to another field.

The above solutions are only for the certain list type.

My new custom field can be used on every list or library!

image

Just add the field to one of your lists/libraries:

image

It will automatically try to find local libraries for documents and images to store the uploaded files and images.

One of the available list fields will be used to insert the link. That field has to be a Rich Text field! And if you want to upload and insert images, it has to be an Enhanced Rich Text field.

The great advantage of the field is, that it will be displayed when you create a new item, or edit an existing. If you view an item from the DisplayForm, the field will not be shown. And yes, it will work for new Wiki Pages!

image

 image

An Update Check is implemented as in most of my solutions. That way you can always see if there is a newer version of the field available on my blog.

The field is localized for German and English.

Installation

  1. Make sure you have the .NET Framework 3.5 installed
  2. Add the solution with “stsadm –o addsolution –filename RH.UploadAndInsertField.wsp”
  3. Deploy the solution in your Central Administration

Download:

RH.UploadAndInsertField.wsp

RH.UploadAndInsertField-Source.zip

Update 24. March 2009
Fixed a bug if the field was used on a rootWeb
 
Update 13. July 2009 - Version 1.0.2.0
Inserted links are now relative

Update 30. June 2009 – Version 1.0.4.0
Now works as a site column

Update 06. September 2009 – Version 1.0.5.0
Fixed Bug where links for rootwebs were invalid

Update 06 Februar 2010 – Version 1.0.6.0
Fixed Bug where viewing the list in DataSheetView would fail


Published: 2/25/2009  8:18 PM | 53  Comments | 0  Links to this post
Tagged as: Development, SharePoint, Upload Webparts

Jan 072009

Upload documents/pictures to a discussion lists

You might already know my Wiki Webpart, which allows you to upload pictures and documents to a Wiki while editing it.

What is it?

With this Solution you can upload images and documents from the new/edit form into existing picture/document libraries. After the file has been uploaded, a link will be inserted into the Body.

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 Body via JavaScript. There is no reload of the page required.

Requirements

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

Installation

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

The solution contains one feature, which has to be activated on site collection level.

After the feature has been activated, discussion lists will have a new link in the list properties.

If you click on the link, it will bring up a settings page for the feature.

Enabling the feature in the properties will add the Webpart to the NewForm and EditForm of your discussion list. Disabling it, will remove the Webparts.

Update:

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 discussion list and on your sitecollection.

Download

Download Solution

Download Source code

Technorati Tags: ,

Published: 1/7/2009  12:08 PM | 8  Comments | 0  Links to this post
Tagged as: Webparts, Development, SharePoint, Upload Webparts