简体   繁体   中英

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 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM