SharePoint Blog - René Hézser

Anmelden  RSS Feed RSS Feed
Startet die Suche

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 | 40  Comments | 0  Links to this post
Tagged as: Development, SharePoint, Upload Webparts

Feb 222009

How to use the SharePoint Web Controls – Update

My post How to use the SharePoint Web Controls has been updated.

It now shows how to use a generic control for each SPField, instead of picking the corresponding SharePoint Web Control.

   1:  BaseFieldControl webControl = field.FieldRenderingControl; 
   2:  webControl.ListId = list.ID; 
   3:  webControl.ItemId = item.ID; 
   4:  webControl.FieldName = field.Title;
   5:  webControl.ID = GetControlID(field);
   6:  webControl.ControlMode = mode;

Thanks for all the great comments and ideas!


Published: 2/22/2009  7:58 PM | 0  Comments | 0  Links to this post
Tagged as: Development, SharePoint, Web Controls

Feb 152009

The file manifest.xml does not exist in the solution package

Creating a SharePoint solution file (which is a cab file renamed to wsp), can cause problems if the size of the file would exceed the space on an 1.44MB disk.

1.44MB? What the…? The default values for makecab, which is used for generating the cab file, will prevent the creation of a valid cab file :-(

Thanks to Eugene Rosenfeld for finding this one.


Published: 2/15/2009  7:05 PM | 0  Comments | 0  Links to this post
Tagged as: Solution, SharePoint

Feb 152009

SharePoint Konferenz

 image

Dieser Post ist noch ein Nachtrag zur SharePoint Konferenz in München.

Mein Fazit zur Veranstaltung: Eine Gelungene Veranstaltung mit hochkarätigen Vorträgen!

Deshalb geht mein Dank an den Veranstalter mit seinem Team, die verschiedenen Sprecher und natürlich an die Teilnehmer der Konferenz. Ein Gedankenaustausch durch zahlreiche Gespräche zwischen den Beteiligten war jederzeit möglich. Allein diese Tatsache ist auf Konferenzen ein Grund zur Teilnahme. Wo sonst kann man sich mir so vielen Personen zum Thema SharePoint austauschen?

Kleine „Nettigkeiten und Seitenhiebe“ gehören natürlich auch dazu. Und auch die Zylonen wurden besiegt!

Schade dass die Versanstaltung schon wieder vorbei ist. Themen für weitere Vorträge sind sicherlich noch reichlich vorhanden.

Ich freue mich auf ein Wiedersehen…


Published: 2/15/2009  3:23 PM | 2  Comments | 0  Links to this post
Tagged as: SharePoint