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

3
  • Yes, you are correct Sep 20, 2018 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? Sep 20, 2018 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 John
    Sep 25, 2018 at 12:51

1 Answer 1

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.

1
  • 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 John
    Sep 25, 2018 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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