SharePoint 2010 MySites:如何禁用在 MySites 中创建博客的功能? [英] SharePoint 2010 MySites: How can I disable the ability to create blogs in MySites?

查看:62
本文介绍了SharePoint 2010 MySites:如何禁用在 MySites 中创建博客的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所说,我正在寻找一种方法来限制用户在 MySites 中创建博客.过去几天我一直在研究这个,似乎找不到一个好的选择.

Like the title says, I'm looking for a way to restrict user creation of blogs in MySites. I've been researching this for the past few days and can't seem to find a good option.

目前,我隐藏了通过自定义母版页创建博客的链接.我正在使用功能装订将自定义母版页添加到正在运行的 MySites;然而,这并不是真正的最佳实践",因为使用 URL 创建博客站点仍然有效.

Presently, I'm hiding the links to create a blog through a custom Master page. I'm using feature stapling to add the custom Master page to MySites which is working; however, not really a 'best practice' since using the URL to create the blog site will still work.

我也不想手动更改 SharePoint 根目录结构中的文件,因为在升级路径中这是一种糟糕的做法.

I also don't want to manually change files in the SharePoint root directory structure as it is a poor practice in an upgrade path.

如果有任何见解,我将不胜感激...

I would appreciate any insight...

推荐答案

如果您在单独的 Web 应用程序中托管 MySites,则可以使用事件接收器(派生自 SPWebEventReceiver 并实施 WebAdding) 并检查 WebTemplate 是否为 BLOG.

If you're hosting MySites in a separate Web Application, you can use an Event Receiver (derived from SPWebEventReceiver and implementing WebAdding) and check that the WebTemplate is BLOG.

这篇关于SharePoint 2010 MySites:如何禁用在 MySites 中创建博客的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆