Как добавить список календаря и объявления на мой пользовательский веб-шаблон?
-
10-12-2019 - |
Вопрос
Я использую SharePoint 2010 и VS2010.
Я внедрил этот урок для создания пользовательского веб-шаблона:
Теперь я хотел бы добавить список календаря и объявлений на домашнюю страницу.Где и как я могу это сделать в моих файлах веб-шаблонов, как ниже:
- defaultdws.aspx
- default.aspx
- onet.xml
- elements.xml
Что делать в каком файле?
Решение
You need to modify Onet.xml file,
http://msdn.microsoft.com/en-us/library/ms474369(v=office.12).aspx
If you go through article link I given above you will figure out that in Onet.xml file you need to add
<ListTemplates>
<ListTemplate .. tag for calendar list and then />
<ListTemplate .. tag for calendar list and then />
</ListTemplates>
You will need to change list template type for calendar and annoucement in list template, I will let you do it yourself.
Не связан с sharepoint.stackexchange