Create New Document Web Part

The ListView web part can show an ‘Add new Document’ link below it, as a summary toolbar.

listview-with-add-new-link

Unfortunately a click on this takes you to an upload page, rather than creating a new document based on a template. Sometimes I’ve wanted to display a link that does something more link the ‘New’ menu on a list.

Document Library Content Types

The Create New Document Web Part displays links that look like the ‘Add new Document’ link, but behave like clicking on the ‘New’ menu – opening a new file based on the content type.

CreateNewDocumentWebPart itself

You can select what document library and what content types you want to display links for in the web part’s edit pane:

Edit Part

And when combined with a ListView web part, it can do a pretty convincing job of looking like the ‘Add new Document’ link:

ListView and CreateNewDocument together

Latest Version 1.0.0, 20th June 2009 – download hereSource

3 thoughts on “Create New Document Web Part

  1. Thanks! Great solution. Is it possible to get fields value as parameters for new document?

  2. I doubt it – it’s a new document, so where would these values come from?

    If you’re dealing with something like a Word document, though, promoted fields should be treated as normally.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>