Tangible Thoughts

SharePoint, MOSS? and all the other questions

  Home  |   Contact  |   Syndication    |   Login
  858 Posts | 6 Stories | 482 Comments | 2088 Trackbacks

News

Tag Cloud


Article Categories

Archives

Post Categories

Image Galleries

Linky Things

SharePoint Bloggers

SharePoint Related

What I am playing

What I am Reading

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 07, 2007 2:52 AM

Feedback

# re: Is There no Way to Add a Document Template as a Feature? 10/7/2007 5:19 AM Peter {faa780ce-0f0a-4c28-81d2-3
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.

# re: Is There no Way to Add a Document Template as a Feature? 10/10/2007 4:09 AM Tariq
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.



# re: Is There no Way to Add a Document Template as a Feature? 10/12/2007 1:51 AM Tim
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


# re: Is There no Way to Add a Document Template as a Feature? 2/12/2008 7:00 AM Genel Kültür
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.

# re: Is There no Way to Add a Document Template as a Feature? 4/5/2008 11:58 PM Mode XL
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..

# re: Is There no Way to Add a Document Template as a Feature? 11/4/2009 4:42 PM Cephe Kaplama
Great post.Thanks a lot.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: