我认为这是一个非常有用的插件,所以我创建了一个。
http://www.fijiwebdesign.com/products/article-access-plugin.html
项目页面:
http://code.google.com/p/joomla-article-access/
该插件允许您通过定义某些用户组可以查看的文章部分来为文章添加访问控制。
可用的不同用户组是:
- 客人
- 已注册
- 作者
- 编辑器
- 出版商
- 经理
- 管理员
- 超级管理员
为了让文章的一部分可以被某个组看到,编辑文章如下:
{access view=registered}
Only registered users can view this portion of the article.
{/access}
要排除某个群组查看文章,请在群组名称前使用感叹号 (!)。
{access view=!registered}
Any group other then registered can view this portion of the article.
{/access}
要添加多个组,请用逗号 (,) 分隔。
{access view=registered,author,editor}
Only registered,author and editor usertypes can view this portion of the article.
{/access}
要在两个组(包括)之间添加任意组,请使用连字符 (-)。
{access view=registered-editor}
Only registered,author and editor usertypes can view this portion of the article.
{/access}
要添加任何组以及高于或低于组(包括),只需将组的右侧或左侧留空,以匹配最低或最高的组。
{access view=-registered}
Only guests and registered users can view this portion of the article.
{/access}
{access view=author-}
Only authors and above can view this portion of the article.
{/access}
您还可以将不同的组过滤器/选择混合在一起。