1

I am working on a classic online team site. and i have a subsite which contain these main components:-

  1. 3 custom lists which contain items.
  2. i added many modern site pages inside the built-in sitePages library. and i set one of the modern pages as the home page for the subsite.

now i saved the sub-site as template, and i chose not to include the content. then i created a new sub-site based on the templete, but i found that the new sub-site which i created based on the templete, will contain empty custom lists (which make sense since i chose not to include content inside the site template), while it will contain the modern pages inside the SitePages library + the home page which i set is also preserved.

so can i conclude that site templates which is created without content, will always include site pages, but will not include custom list items?

Thanks

  • Yes, you are correct – Jason James Sep 20 '18 at 16:03
  • Since 'Site Pages' is a default app in a team site, it seems logical that items in that location would be saved automatically (even when choosing not to include content). Perhaps further testing with items in other default locations, (i.e. Shared Documents, Calendar) could further your testing? – Drew Paxton Sep 20 '18 at 18:50
  • @DrewPaxton as per my test, documents inside the Shared Documents library will not be included in the site template unless saving content checkbox is checked. – john Gu Sep 25 '18 at 12:51
1

Site Pages and their associated files to run them are always included in a site template. The files located in libraries and the content inside of any lists will not be saved unless you direct the template to do so. Therefore, your conclusion is correct.

  • but i am not sure if any file inside a library will be included in the site template which is saved without content. Take a document library as an example, the documents inside it will not be included in the site template unless the site content is shown to be saved inside the site template... – john Gu Sep 25 '18 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.