TypoScript configuration of the Frontend Login

TypoScript setup / FlexForm settings

Most of these plugin settings can be set with the following methods, the top bottom most taking precedence:

See also Example: Override the default storage page in the plugin's FlexForm.

showForgotPassword

showForgotPassword
Type
bool

If set, the section in the template to display the link to the forgot password dialogue is visible.

showPermaLogin

showPermaLogin
Type
bool

If set, the section in the template to display the option to remember the login (with a cookie) is visible.

showLogoutFormAfterLogin

showLogoutFormAfterLogin
Type
bool

If set, the logout form will be displayed immediately after successful login.

pages

pages
Type
string
Site set setting
felogin.pid
TypoScript Constant
{$styles.content.loginform.pid}

Define the User Storage Page with the Website User Records, using a comma separated list or a single value (page id).

recursive

recursive
Type
int
Site set setting
felogin.recursive
TypoScript Constant
{$styles.content.loginform.recursive}

If set, also any subfolders of the User Storage Page will be used at configured recursive levels

redirectMode

redirectMode
Type
string
Site set setting
felogin.redirectMode
TypoScript Constant
{$styles.content.loginform.redirectMode}

Comma separated list of redirect modes. Possible values: groupLogin, userLogin, login, getpost, referer, refererDomains, loginError, logout See section on redirect modes for details.

redirectFirstMethod

redirectFirstMethod
Type
bool
Site set setting
felogin.redirectFirstMethod
TypoScript Constant
{$styles.content.loginform.redirectFirstMethod}

If set the first method from redirectMode which is possible will be used

redirectPageLogin

redirectPageLogin
Type
integer
Site set setting
felogin.redirectPageLogin
TypoScript Constant
{$styles.content.loginform.redirectPageLogin}

Page id to redirect to after Login

redirectPageLoginError

redirectPageLoginError
Type
integer
Site set setting
felogin.redirectPageLoginError
TypoScript Constant
{$styles.content.loginform.redirectPageLoginError}

Page id to redirect to after Login Error

redirectPageLogout

redirectPageLogout
Type
integer
Site set setting
1
TypoScript Constant
{$styles.content.loginform.redirectPageLogout}

Page id to redirect to after Logout

redirectDisable

redirectDisable
Type
bool
Site set setting
felogin.redirectPageLogout
TypoScript Constant
{$styles.content.loginform.redirectDisable}

If set redirecting is disabled

dateFormat

dateFormat
Type
date-conf
Site set setting
felogin.dateFormat
TypoScript Constant
Y-m-d H:i

Format for the link is valid until message (forgot password email)

email_from

email_from
Type
string

Email address used as sender of the change password emails

email_fromName

email_fromName
Type
string

Name used as sender of the change password emails

email

email

email.templateName

email.templateName
Type
string
Site set setting
felogin.email.templateName
TypoScript Constant
{$styles.content.loginform.email.templateName}

Template name for emails. Plaintext emails get the .txt file extension.

email.layoutRootPaths

email.layoutRootPaths
Type
array
Site set setting
felogin.email.templateRootPath
TypoScript Constant
{$styles.content.loginform.email.layoutRootPath}

Path to layout directory used for emails

email.templateRootPaths

email.templateRootPaths
Type
array
Site set setting
felogin.email.templateRootPath
TypoScript Constant
{$styles.content.loginform.email.templateRootPaths}

Path to template directory used for emails

email.partialRootPaths

email.partialRootPaths
Type
array
Site set setting
felogin.email.partialRootPath
TypoScript Constant
{$styles.content.loginform.email.partialRootPaths}

Path to partial directory used for emails

forgotLinkHashValidTime

forgotLinkHashValidTime
Type
integer
Site set setting
felogin.forgotLinkHashValidTime
TypoScript Constant
{$styles.content.loginform.forgotLinkHashValidTime}

Time in hours how long the link for forgot password is valid

domains

domains
Type
string

Comma separated list of domains which are allowed for the referrer redirect mode

Example: Set the default storage page via TypoScript constant

You can use the TypoScript provider or other means of setting the TypoScript constants.

Changed in version 13.1

config/sites/MySite/constants.typoscript
styles.content.loginform {
  pid = 42
  recursive = 255
}
Copied!

Example: Set the default storage page via TypoScript setup

In order to set the default storage page to a more dynamic value, use the TypoScript setup. Use the TypoScript provider or other means of ref:setting the TypoScript setup <t3tsref:using-and-setting>.

config/sites/MySite/constants.typoscript
[{$tx_my_extension.settings.feature1Enabled} == 1]
  plugin.tx_felogin_login.settings.pid = 123
[ELSE]
  plugin.tx_felogin_login.settings.pid = 42
[END]
Copied!

Example: Override the default storage page in the plugin's FlexForm

If you set any FlexForm setting within the content element representing the plugin to a non-empty value it will override any other setting not matter if it is made via site settings, TypoScript constant ot TypoScript setup. Empty values take no effect if a default was set by other means.

In the backend module Web > Page edit the content element containing the login form. Go to tab Plugin and sub tab General. You should see a form similar to the following:

A screenshot showing the "General" tab of the plugin settings

Settings in the tab General of the plugin tab

Choose the desired page or pages in the field with label User Storage Page (key settings.pages).

A screenshot showing FlexForm Field with key `settings.pages`

The corresponding FlexForm field settings.pages in backend debug mode.