Hiding a deprecated sharepoint web
I want to hide a Sharepoint web that has been deprecated (via custom means) due to the release of a newer version, whether it would be making it invisible in the sites and workspaces, or via some special archiving function provided by Sharepoint. Basically I do not wish the users to be able to see the deprecated site.
I was wondering what are the options for doing so, both programmatically or via Sharepoint utils/interfaces?
Thanks.
UPDATE:
The s开发者_运维百科cenario where I want to hide the web from the users (e.g. Webv1.0 when Web2.0 is available) is a bit like, okay, I have version 2.0 of Software X downloaded and installed, and it has converted all of my data into version 2.0 format so it will be compatible with new features. As a user, I would not want to use Software X version 1.0 anymore since it is now old. Of course I would want a backup copy of my data from version 1.0, but I probably don't want to be confused by having a link here which can get me to version 1.0 of the software (and from a developer's point of view, it'll be extra unnecessary work to make version 1.0 being viewable/editable in version 2.0).
I thought of the idea of using security to only allow admins to see everything, but I want to explore other options first e.g. whether it is possible to make the link to the old site disappear programmatically.
Thanks.
Could you just remove all access to that site (by breaking security inheritance) and just allow admins only access to it?
Colin's answer sounds like the way to go. Alternatively you can inject a little bit of JavaScript that automatically redirects the user to the new version of the site.
You can add JavaScript using a content Editor Web Part (one page at a time) or by using the free SharePoint Infuser (all pages in one go).
精彩评论