RoxenCMS 5.4Web Developer ManualIf Tags

   

<else>
<elseif>
<false>
<if>
<if ac-identity-exists>
<if ac-verify-password>
<if accept>
<if access-path>
<if client>
<if clientvar>
<if config>
<if cookie>
<if date>
<if defined>
<if domain>
<if exists>
<if expr>
<if false>
<if group>
<if internal-exists>
<if ip>
<if kerberos-auth>
<if language>
<if match>
<if Match>
<if module>
<if poll-voted>
<if ppoint>
<if pragma>
<if prestate>
<if referrer>
<if sb-user-op>
<if scope>
<if sizeof>
<if supports>
<if time>
<if true>
<if type-from-data>
<if type-from-filename>
<if user>
<if variable>
<if Variable>
<if variable-exists>
<then>
<true>

<if sb-user-op></if>

Provided by module: CMS: Tags

Checks if a authenticated user has the permissions to perform a operation on a specified file or directory. Note: If the attribute path is omitted the current selected file is used by default.

To better manage errors, use this plugin together with <sb-error>.

Note: This tag should be used together with <sb-edit-area>sb-edit-area.


Attributes

sb-user-op="operation"

Check if the user has the permissions to perform this operation.

OperationCheck if user may

newfile

add a new file

newdir

add a new directory

set_metadata

change metadata

move

move/rename a file or directory

copy

copy a file or directory

commit

commit local files

delete

delete a file or directory

log

view/show revision log

view

view a file

revert

revert a file to an old revision


path="absolute or relative path to a file or directory"

Check if the user may perform a operation on this file. If this attribute is ommited, the current file will be used.

<if sb-user-op="delete" path="&var.filename;"> &var.filename; may be deleted by you. </if>