Adding a Custom Webpart to a Site Template in Sharepoint 2010
I tried to add a custom created webpart to a customized team site which I then saved as a template. The webpart in question worked fine with the开发者_JAVA技巧 original site. However, when I created a new site based on this template(within the same server that the webpart in question was deployed to) the area which was supposed to contain the webpart was blank. Is there anything I'm missing or is it not possible to deploy a custom webpart into a custom site template?
Just guessing here because I haven't tried it but when you add a webpart to the page you are essentially customizing that page for that specific site. The webpart location is stored in the content database just for that individual page.
When you save a site as a template you are just saving the structure so when you provision a new site the customized page isn't there.
精彩评论