Archive for category 2007

Using Native SharePoint Form Fields

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

When making a generic web part for modifying or interacting with different SharePoint data you can’t always predict the column data type before hand. The best way to make sure your web part works regardless of what data is being tossed in to it is to just use the out of box SharePoint Form Field control. This control goes ahead and grabs the column edit and display templates depending on the state you specify. Below is a code snippet example of how to use this control. Takes a lot of the headache out when dealing with unknown data types/building generic web parts.

No Comments

Creating a SharePoint 2007 WSP Without Templates

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

This post is to cover how to make a SharePoint 2007 WSP without using a prebuilt Visual Studio project template. Why you’d want to do this is another question entirely but falls back mostly to the ‘enterprise ready’ state of the SharePoint development story, especially when using things like a central build server. 😉

1 Comment

Force Page Edit Mode

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

HTTP:\\MYSHAREPOINT?ToolPaneView=2&pagemode=edit

No Comments

Data View Web Part Tricks

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

One of the most handy out of the box customization components in my opinion is the Data View Web Part, but mucking around in XSLT can be a pain at times so here’s some reference points for making things easier, these work with SharePoint 2007/2010 and anything else that can use XSLT.

1 Comment

Accordion Data View Web Part

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Even more ‘fun’! Making nifty things with jQuery with the data view web part, like an accordion!

No Comments

Multiple Entry Single Field

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

This is a method I came up with to use jQuery to fake an n+1 relationship for one or more columns within a single list item. You can see in the image below that the user is initially presented with the designated fields empty; they have a button for adding the new ‘rows’ in to the fields specified. This is a simple method for basic scenarios where you need a relational style input within a single form.

No Comments

SharePoint Search with Pagination

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

This is an example class for showing how to search SharePoint with paging support in the API. This function accepts a string containing the standard SharePoint SQL style search query.

1 Comment

Extending the size of the Rich Text Editor

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

So an issue I’ve heard many times from end users is that the rich text editor is way too small to do verbose content. Below you’ll find some CSS which increases the size of the Rich Text Editor and the list form in general to be both wider and in the case of the RTE, taller as well.

No Comments