aarebrot.net Frode's blog on Sharepoint and other stuff

Creating custom content type forms using aspx pages in SharePoint 2007

Posted on August 10, 2011
VN:F [1.9.22_1171]
Rating: 4.2/5 (5 votes cast)

I'm working on a project where I need to create some custom task forms for a workflow. I've been looking into a few different ways of doing it and I ended up deciding on using custom aspx pages to do the job. I figured I should share how to do it although it's not all that hard.

But hang on... Why aspx pages? Why not InfoPath? You'd think using InfoPath would be a no-brainer, considering creating custom forms is it's entire purpose in life.

How to set the content type of a new file in a document library, when uploading said file through code (aka longest and most convoluted blog title to date)

Posted on March 29, 2011
VN:F [1.9.22_1171]
Rating: 4.5/5 (8 votes cast)

I'm on a project that's very close to being implemented in production. For the final go-live we will be uploading a bunch of files (about 700) into a document library. There are two content types in our document library, SPI Documents and SPI Drawings. Uploading the files directly into the document library will pick the default content type. How do we change it to use the second content type, instead of the default, for some of the files?

Content Types with associated Fields for SharePoint 2010

Posted on February 28, 2011
VN:F [1.9.22_1171]
Rating: 4.7/5 (6 votes cast)

Here is a (hopefully) complete list of Content Types and associated Fields for SharePoint 2010. This is the equivalent of my previous post, but for SharePoint 2010 instead. You can find the PowerShell script I used to extract the information in another previous post of mine.

Content Types with associated Fields for SharePoint 2007

Posted on February 28, 2011
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

I’ve previously posted both a list of Content Types as well as a list of Fields that appear in SharePoint 2007 and 2010. But what if you want to find out what Fields a Content Type uses? Here is a (hopefully) complete list of SharePoint 2007 Content Types and associated Fields.

Using PowerShell to retrieve Content Types and associated Fields

Posted on February 28, 2011
VN:F [1.9.22_1171]
Rating: 5.0/5 (4 votes cast)

I’ve previously posted PowerShell scripts that allow you to extract Content Types or Fields from a SharePoint site. But last week a commenter by the named Jeff posed a valid question. What if I want to extract all Content Types in a SharePoint site, and show the associated Fields for each of them?