创建一个Web模板并显示一个“web-relative Webpart”。在首页? [英] Create a Web-Template and show a "web-relative Webpart" on startpage?

查看:94
本文介绍了创建一个Web模板并显示一个“web-relative Webpart”。在首页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候!


我设计了一个小型的"应用程序"。 web,其中包含一个日历和2个列表。

在起始页面上,我添加了一个WebPart来显示日历。

最后我将此网站保存为模板网站集(检查"包含内容")。


现在,当我在此集合中创建一个新的子网站,选择我创建的模板时,起始页面应该显示它自己的日历内容(创建正确),但看起来它引用了原始日历的List-ID并抛出
错误,"列表不可用"。


如何创建网页模板,网页相关的应用程序显示在带有相应网站的页面中?


感谢阅读和帮助!

michi

解决方案

webpart引用了一个列表ID,但无法更改。


所以你需要编码要求。


https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee566718(V = office.14)


Greetings!

I designed a small "application" web, which has a calendar and 2 lists in it.
On the start page I included a WebPart to show the calendar.
At last I saved this web as template to the site collection (checking "include content").

Now, when I create a new subweb in this collection, selecting my created template, the start page should display the contents it's own calendar (which got created right), but it looks like it referenced the List-ID of the original calendar and throws an error, "The list is not available".

How do I create a web-template, where web-related apps are shown in pages with the appropriate webpart?

thanks for reading and helping!
michi

解决方案

The webpart refers a list id and that is cannot be changed.

So you need to code for the requirement.

https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee566718(v=office.14)


这篇关于创建一个Web模板并显示一个“web-relative Webpart”。在首页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆