SharePoint Blog - René Hézser

Anmelden  RSS Feed RSS Feed
Startet die Suche

Archive

Kategorien

Links

Andere Blogs



Add to Technorati Favorites

Jul 282008

CopyTool for SharePoint - Update

Hello everybody. I have updated the "Net at Work CopyTool for SharePoint".

Some of the new features are:

  • GUI: You can now interact with the program with a nice WPF GUI
  • Copy Subareas: If you want to copy an Area with its Subareas, you can do so now
  • Copy only selected lists: Now you can copy only certain lists, and not a whole Area as smallest part

As always, you can find more information here.

Technorati Tags: ,,,

Published: 7/28/2008  9:40 PM | 0  Comments | 0  Links to this post
Tagged as: Sonstiges

Jul 262008

Use SharePoint RSS feeds with absolute links

It is a annoying that RSS feeds do not display images correctly, if your feedreader is offline. The problem is, that the links generated by the SharePoint RSS feed api returns relative links instead of absolute links.

But there is a solution: --> Images Broken When Viewing Windows SharePoint Services RSS Feeds in Outlook

Here is a small update if you want to make a regular link absolute as well:

_imagesRegex = new Regex(@"(<(img|a) .*? \s (src|href) \s* = \s* [""']?)/", RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);

Technorati Tags: ,


Published: 7/26/2008  11:43 AM | 0  Comments | 0  Links to this post
Tagged as: Development, SharePoint

Jul 252008

Adding a custom field type via code

Your custom field type can be added to a list in a browser easily. But how do you add a custom field type via code?

Here is my way:

  1. add a new field with the field type from which your custom field type derived
  2. change the field type of the new field to your own custom field type

In my case my custom field type derived from a SPFieldLookup.

 
  1:   // create new lookup field 
   2:  string newFieldName = fields.AddLookup("fieldname", list.ID, web.ID, false); 
   3:  var newField = fields.GetFieldByInternalName(newFieldName); 
   4:  // change field type to our own 
   5:  newField.SchemaXml = newField.SchemaXml.Replace("Lookup", "yourFieldType");

 

Update 4. Feb 2008

The above solution will bring you a field with the type. But a much smoother way is to create a new field, which has the selected type. This way you don’t need to modify the schema of the field.

1:  CustomFieldClass field = list.Fields.CreateNewField("CustomFieldClass", "The name of the field");
2:  list.Fields.Add(field);

 

Technorati Tags: ,

Published: 7/25/2008  8:22 PM | 0  Comments | 0  Links to this post
Tagged as: Development, SharePoint, SPField

Jul 242008

SharePoint Content Deployment Wizard

There is great tool on CodePlex. SharePoint Content Deployment Wizard.

The SharePoint Content Deployment Wizard is a tool for SharePoint 2007 which provides the means to deploy the following content:
- site collections
- webs
- lists
- folders
- list items (including files)


Published: 7/24/2008  6:06 PM | 0  Comments | 0  Links to this post
Tagged as: CodePlex, SharePoint