Wednesday, July 31, 2013

SharePoint Library Modal Pop-up for specific Content Type

The add document link at the bottom of the page always defaults to upload I think. I'm not sure if it's possible to change that to default to create a new one (without putting some JQuery to overwrite the action).


For creating the document this blog seems to do what you want: http://www.novolocus.com/2009/03/04/add-a-create-new-document-link-to-a-page/


In particular this is the javascript that runs to create a document based on a particular CT



createNewDocumentWithProgID('http:\u002f\u002fvm-moss2007\u002fMod Props\u002fForms\u002fMod Props\u002fModPropTemplate.xlsx', 'http:\u002f\u002fvm-moss2007\u002fMod Props', 'SharePoint.OpenDocuments', false)


No comments:

Post a Comment