Geeks With Blogs

Tangible Thoughts SharePoint, MOSS? and all the other questions

Yes, that's the question I have been pondering for the last couple of hours (maybe more). And I am begriming to believe that it cant be done. Other than for the route of either writing a feature receiver to upload the template to a  list on activation (but I think this approach is unclean) or modify onet.xml (a site definition?). I think both approaches are unnecessarily complex for the task at hand.

Think about it, just so that I could have a custom document library or form library with a custom document template I would either have to write code or modify the site definition. Isn?t that a bit unclean? Why cant it be done as a feature?

 

Cross-posted from tariqayad.com

Posted on Sunday, October 7, 2007 2:52 AM SharePoint | Back to top


Comments on this post: Is There no Way to Add a Document Template as a Feature?

# re: Is There no Way to Add a Document Template as a Feature?
Requesting Gravatar...
Maybe make a list definition with the document template already embedded inside?

I haven't done this myself, so this is one of those "just throwing that out there; for whatever it's worth" non-expert suggestions.
Left by Peter {faa780ce-0f0a-4c28-81d2-3 on Oct 07, 2007 5:19 AM

# re: Is There no Way to Add a Document Template as a Feature?
Requesting Gravatar...
Peter,
I tried that doesnt work.

Jo,
Thanks for the link, but I've already seen that
Todd says Step 4: (Optional) Create the <DocumentTemplate> element inside the ONET.XML file if you are using a custom Document Template for your custom Document Library.
i.e. you have to modify the site definition, and that goes against the configurabilty that is available with features. - Maybe I am missing something.

Left by Tariq on Oct 10, 2007 4:09 AM

# re: Is There no Way to Add a Document Template as a Feature?
Requesting Gravatar...
After a while hunting this down myself, the following might point you in the right direction:

http://blogs.infosupport.com/wouterv/archive/2007/04/02/Provisioning-content-types-with-templates-using-the-feature-framework.aspx
Left by Tim on Oct 12, 2007 1:51 AM

# re: Is There no Way to Add a Document Template as a Feature?
Requesting Gravatar...
Thanks for the link, but I've already seen that
Todd says Step 4: (Optional) Create the <DocumentTemplate> element inside the ONET.XML file if you are using a custom Document Template for your custom Document Library.
i.e. you have to modify the site definition, and that goes against the configurabilty that is available with features. - Maybe I am missing something.
Left by Genel Kültür on Feb 12, 2008 7:00 AM

# re: Is There no Way to Add a Document Template as a Feature?
Requesting Gravatar...
Step 4: (Optional) Create the <DocumentTemplate> element inside the ONET.XML file if you are using a custom Document Template for your custom Document Library.

Thanks a lot..
Left by Mode XL on Apr 05, 2008 11:58 PM

# re: Is There no Way to Add a Document Template as a Feature?
Requesting Gravatar...
Great post.Thanks a lot.
Left by Cephe Kaplama on Nov 04, 2009 4:42 PM

Your comment:
 (will show your gravatar)


Copyright © Tariq | Powered by: GeeksWithBlogs.net