Start page / Advanced topics / Assignment of permissions / User permissions / Define input components
Define input component
The CMS_INPUT_PERMISSION input component, with which editors can define access permissions for users for objects in SiteArchitect, is usually used in the metadata tab of the respective object. To do this, a separate template must be created, which must be selected in the project properties, in the Metadata Template combobox in the Options area.
Define permissions
While there are only a certain number of pre-defined editorial permissions in FirstSpirit, completely individual user permissions can be defined.
Possible user permissions can be:
Permission | Explanation |
---|---|
Read | The user may view an object. |
Change | The user may change an object. |
Create | The user may create a new object. |
Delete | The user may delete an object. |
The user may print out an object / a page. | |
Save | The user may save / download an object. |
Unlike editorial permissions, which are specified and fixed by FirstSpirit, user permissions are individually defined by the template developer and can therefore be flexibly adjusted to all the requirements of a project or a website. This concerns both the semantics and the evaluation of the permissions. User permissions are therefore not interpreted and evaluated by FirstSpirit. |
Form tab of the input component
An example of the “Form” tab could look like this:
<CMS_MODULE>
<CMS_INPUT_PERMISSION name="permission" group="GroupsFile" hFill="no">
<ACTIVITIES>
<ACTIVITY name="op1">
<LANGINFOS>
<LANGINFO lang="EN" label="read"/>
</LANGINFOS>
</ACTIVITY>
<ACTIVITY name="op2">
<LANGINFOS>
<LANGINFO lang="EN" label="change"/>
</LANGINFOS>
</ACTIVITY>
<ACTIVITY name="op3">
<LANGINFOS>
<LANGINFO lang="EN" label="create"/>
</LANGINFOS>
</ACTIVITY>
<ACTIVITY name="op4">
<LANGINFOS>
<LANGINFO lang="EN" label="delete"/>
</LANGINFOS>
</ACTIVITY>
</ACTIVITIES>
<LANGINFOS>
<LANGINFO lang="*" label="permissions" description="Please select the group permissions"/>
</LANGINFOS>
</CMS_INPUT_PERMISSION>
</CMS_MODULE>
For further information and explanations of the CMS_INPUT_PERMISSION input component, please refer to the Template Development area of this online document.