TYPO3:什么是字段"access_group"?为了? [英] TYPO3: what is the field "access_group" for?
问题描述
我不知道"access_group int(11)DEFAULT 0 NOT NULL"字段的用途是什么?首先,我认为这是受user_group限制的,但是它有一个字段"fe_group varchar(100)DEFAULT''NOT NULL".您也可以在文档
I don't know what is the field "access_group int(11) DEFAULT 0 NOT NULL" for? First I thought it's for restriction by user_group, but there is an field "fe_group varchar(100) DEFAULT '' NOT NULL" for it. You can find the field also at the documentation Preparing the database , but I couldn't find a description for it, only for "fe_group".
推荐答案
access_group
是 be_user 组.
在TYPO3中,您具有类似于unix-rights的访问系统,您可以在其中访问页面(以及页面中的记录).
In TYPO3 you have an access-system similar to the unix-rights, where you can grnat access to pages (and records in the page).
有一个菜单项 System
-> Access
,您可以在其中选择一个页面,并可以递归设置多个级别的值:
There is a menu entry System
->Access
where you select a page and can set values for multiple levels recursive:
您可以设置所有者
和 Group
以及为
分配的授予的权限所有者,组,所有人
You can set Owner
and Group
and the granted rights which are assigned for
Owner, Group, Everybody
权限按位编码(显示顺序不同):
the rights are coded bitwise (other order than displayed):
1(2 ^ 0)显示页面:显示/复制页面和内容.
2(2 ^ 4)编辑内容:更改/添加/删除/移动内容.
3(2 ^ 1)编辑页面:更改页面,例如.更改页面标题等.
4(2 ^ 2)删除页面:删除/移动页面和内容.
5(2 ^ 3)新页面:在此页面下创建新页面.
1 (2^0) Show page: Show/Copy page and content.
2 (2^4) Edit content: Change/Add/Delete/Move content.
3 (2^1) Edit page: Change page eg. change pagetitle etc.
4 (2^2) Delete page: Delete/Move page and content.
5 (2^3) New pages: Create new pages under this page.
可以在页面TSconfig中使用 TCEMAIN
设置这些值,因此子树中的所有页面可能都具有相同的权限.
These values can be set with TCEMAIN
in the page TSconfig, so all pages in a sub tree might get the same rights.
示例:
TCEMAIN.permissions {
userid = 43
groupid = 5
user = 31
group = 19
everybody = 1
}
- 每个页面都将以uid 43作为所有者的用户
- 该组将是具有uid 5的组
- 所有者拥有一切权利,
- 该群组可以
显示页面
,编辑页面
,编辑内容
,但不能删除页面
或在下面创建新页面
- 每个人都可以看到该页面
或者,您也可以通过关键字设置权限:
Alternatively you can set the rights by keywords:
TCEMAIN.permissions {
userid = 43
groupid = 5
user = show, edit, delete, new, editcontent
group = show, edit, editcontent
everybody = show
}
来自鲁迪·诺德(Rudy Gnodde)的
评论,我同意:
comment from Rudy Gnodde, which I agree:
这仅用于页面,而不在扩展名的自定义表中使用.在本文档中可能是一个错误.我认为应该是fe_group(在本文档中已提及,但在包含access_group的代码示例中未提及).
This is only used for pages, not in custom tables for extensions. It's probably a mistake in this documentation. It should be fe_group I think (which is mentioned in this documentation, but not in the code example which contains access_group).
由于TYPO3手册可以由每个人编辑(右上角有一个按钮在GitHub上编辑我
),所以我提出了一个更正.
As TYPO3 manuals can be edited by everyone (there is a button Edit me on GitHub
in the upper right corner), I have proposed a correction.
这篇关于TYPO3:什么是字段"access_group"?为了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!