Attention

TYPO3 v10 has reached end-of-life as of April 30th 2023 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.

Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.

be.security.ifAuthenticated

This ViewHelper implements an ifAuthenticated/else condition for backend users and backend groups.

Examples

Basic usage:

<f:be.security.ifAuthenticated>
   This is being shown whenever a BE user is logged in
</f:be.security.ifAuthenticated>

Everything inside the <f:be.ifAuthenticated> tag is being displayed if the user is authenticated with any backend user account.

IfAuthenticated / then / else:

<f:be.security.ifAuthenticated>
   <f:then>
      This is being shown in case you have access.
   </f:then>
   <f:else>
      This is being displayed in case you do not have access.
   </f:else>
</f:be.security.ifAuthenticated>

Everything inside the <f:then></f:then> is displayed the backend user is logged in. <f:else></f:else> is displayed if no backend user is logged in.

Arguments

then

DataType

mixed

Required

false

Description

Value to be returned if the condition if met.

else

DataType

mixed

Required

false

Description

Value to be returned if the condition if not met.