2

I have customized the design in publishing site but i can't save the site as template , therefore i need to restore the customized design site to team site to be able to save the site as template with my custom design !!

Is it possible to Restore-SPSite with publish template on a team site?

4
  • 1
    is it root level site collection or susbite – Waqas Sarwar MVP Mar 20 '17 at 17:19
  • both, I face the two situations – Aashirya Mar 20 '17 at 17:21
  • 1
    What version of SharePoint are you using? – James Grizzle Mar 20 '17 at 17:34
  • sharepoint 2013 – Aashirya Mar 20 '17 at 17:35
2

You wouldn't be able to save the customizations easily for that site. Instead, recreate the customizations in a new team site (without publishing). Then you can use that site as a template.

Take the changes that you made to the MasterPage and apply them to the MasterPage in a Team Site via 'Change the look'. Before starting, make sure the masterpage is uploaded to the MasterPage gallery for that site.

Follow these instructions.

  1. From Site Settings, click 'Change the look' under 'Look and Feel'

Change The Look

  1. On the Themes page click on the theme that you are using. (Likely the first theme if you haven't changed the theme before)

Click the theme

  1. Next on the left pane you can select the master page for this theme.

Select the layout

  1. Next click on “Try it Out” and then “Yes, keep it”

  2. Now you can create a template using this site.

1
  • Thank you so much, I will set your answer, let me apply your steps and feedback you. – Aashirya Mar 20 '17 at 17:47
1

Backup-SPSite takes everything in the site, including GUIDs, thus you cannot use Restore-SPSite to restore to a new site in the same content database since those GUIDs already exist in the DB. You would see the following error if you attempted this:

Restore-SPSite : The operation that you are attempting to perform cannot be completed successfully. No content databases in the web application were available to store your site collection. The existing content databases may have reached the maximum number of site collections, or be set to read-only, or be offline, or may already contain a copy of this site collection. Create another content database for the Web application and then try the operation again.

You could however restore the site to a different content database. This should work, even with sites using the Publishing infrastructure.

3
  • Thank you for your information, Is that mean the customization will be restored as publishing site or team site! i need to move the customization from publishing site to team site – Aashirya Mar 20 '17 at 17:22
  • 1
    I'm sorry I missed that critical part of the question. How have you customized the site? Some customizations can only be done on publishing sites (such as page layouts). – James Grizzle Mar 20 '17 at 17:29
  • just master page modifications, – Aashirya Mar 20 '17 at 17:31
1

What i believe, if you customized the Publishing Site master page then you cannot use it on team site as this required the Publishing feature enabled on the target site. If you enable the Publishing feature on team site then Save as template will be disabled.

I would a create brand new publishing site then customize the master page. Once all customization completed then export the site, then you can import this

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.