Зависимость решения веб-шаблона для создания сайтов

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/86740

  •  10-12-2019
  •  | 
  •  

Вопрос

Я хотел бы развернуть веб-шаблон, который не имеет абсолютно никакой зависимости с созданным сайтом, чтобы я мог убрать решение веб-шаблона с фермы, а сайты, созданные с ней, будут продолжать работать.

Как я могу убедиться, что нет зависимостей между пакетом решения Web Template и созданными коллекциями сайта?

Я пытаюсь только положить контент: добавить новый по умолчанию .aspx (я создаю веб-шаблон от STS # 0), добавьте главную страницу, добавить экземпляры списка и веб-частей.

Это было полезно?

Решение

When you create a site using a Web Template there is no dependency from that site to the Web Template that created it, that's one of the major differences between Site Templates and Web Templates.

BUT the Web Template may use custom features which then create a dependency between the Site and the solution(s) containing these features. These dependencies may come from the fact that the features contains <Module> elements which provisions files and the site then becomes dependent on these files existing in the file system as long as the files are uncustomized or they may contain List definitions.

If you want a custom page and master page, but with no dependency to the feature, then you have to create the page and master page using code.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top