We use MOSS 2007, and I have a document library with several document templates in it. When someone clicks the document template (for example .dotx), the templates is opened. But I want it working so that a new document is opened based on the template.
I can do this with the New button in the toolbar above the list, but I do not like this, and it is not as easy to use for the SharePoint users.
There is a workaround, the user has to click at the right side of the name of the template, then go to the menu 'Send To' and choose 'Download a Copy', in the popup they have to choose 'Open' to create a new document based on the template.
I did found some javascript that can be used to create a new document based on a template:
<a href="javascript:createNewDocumentWithProgID('[template path],
'[default save dir]', 'SharePoint.OpenDocuments', false)">
Create new document
</a>
I really want to use this, but is there a way to add this script to a link in a column in the document library list?!? I tried a new column with type Hyperlink, but an URL starting with 'javascript:....' is not a valid url according to SharePoint.
Or is there another way to accomplish this, a column in an existing list with some text, and if you click on that text, a document will be created based on the template.