Enable save site as a template option in sharepoint publishing sites

Standard

“Save Site As a Template” link not appears in site settings page if you create your site as a publishing web site
Microsoft disabled this link and as i understand after do some search there is a problem occurring if you save site as template then try to use out side the same site collection because all publishing pages uses some content types and these content types not exists in the other sites collection so this is the problem !

….

I didn’t try this you can try and give us here your feedback.

All explanation above means you can save site as a template if it will be in the same site collection , and you must know Microsoft not remove the functionality , it just remove the link so we will make it appear again !!

You must understand that all SharePoint portals based on features , so you must understand also that publishing web is some additional features and site settings menu is a part of Publishing feature

So we will go to modify its XML to view this link its easy ! let’s do it

1-open features folder from C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\Publishing

2-open PublishingSiteSettings.xml file

3-you will find this tag that hide “save site as a template” we will go to comment it (be aware when you work with something like this the better thing is comment not delete because maybe something happened so you can back without losses ! πŸ˜€ )

<!–<HideCustomAction
Id=”HideSaveAsTemplate”
HideActionId=”SaveAsTemplate”
GroupId=”Customization”
Location=”Microsoft.SharePoint.SiteSettings” />–>

4-Now we will add this tag that will view the linkΒ  rather than the above

<CustomAction
Id=”SaveAsTemplate”
GroupId=”Customization”
Location=”Microsoft.SharePoint.SiteSettings”
Rights=”AddAndCustomizePages,BrowseDirectories,ManagePermissions,ManageSubwebs,ManageWeb,UseRemoteAPIs,ViewFormPages”
Sequence=”60″ Title=”$Resources:SiteSettings_SaveAsTemplate_Title;”>
<UrlAction Url=”_layouts/savetmpl.aspx” />
</CustomAction>

5-open site settings page and you will the link

That’s all , and if you want to add any link in any place like this you can do a custom sharepoint feature with the same type and add your links , we will describe how to create a custom sharepoint features and it’s type later

Thanks

Advertisements

22 thoughts on “Enable save site as a template option in sharepoint publishing sites

  1. Pingback: SharePoint Development Material(Links) | @Coding BlackHole

  2. is it works in Sharepoint 2010 ?, as i go through this steps and then I tried to create another site with that publishing site template it throws an error “The Webpage cannot be found” :S

  3. Pingback: SharePoint: Save as site template common mistakes/errors - Choroshin Alex

  4. i have a site collection where i need to create 50 publishing sites (all via the same template).

    Instead of me creating the individual sites every time, would it be beneficial for me to enable the save as site template option, complete my site structure based on thsi site structure.. and then disable it?.
    I not a developer and not sure on how to create a site def, so was just considering if this would be a good option.

    Any help would be great thanks.

  5. Good luck upgrading site templates generated using this method! There is a good reason why the 2007 publishing template does not include the Save as Template link. Learn how to create custom site definitions. It will save you tons of headaches in the long run. πŸ™‚

    • It’s not a viable solution if you ever intend to upgrade SharePoint. I speak from experience. I’ve had at least 3 clients that have made this costly mistake. It seems like a quick and easy work-around, but will cause problems. I strongly advise against it. Then again, if you ever find out the hard way, please call Perficient, Inc. We have a strong SharePoint practice and can help you resolve your problems after your developers are unable to fix them.

  6. Pingback: Save site as a template option in sharepoint publishing sites « All About SharePoint

  7. Pingback: howto enable save site as a template option in sharepoint publishing sites « Alen Ziver Malhasoglu's Microsoft Commerce Server Blog

  8. Yes , i forget this point about re-activation

    for sure the better thing is to create a new custom feature , but i make this example like this because i will make another article about custom feature as i written in the end of article

    Thanks for your valuable reply

  9. Thank you Wael, but I think we should re-activate the feature to view “Save as Template” link.

    Also I think it is not good idea to change feature code, it is not best practice, because if you install SP mayebe will remove your modification, so I think the better way is to add new feature with CustomAction πŸ˜‰

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s