From ff95ac435f653768467cb2641cc3f3b3e750f074 Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Tue, 8 Oct 2024 18:18:43 +0200 Subject: [PATCH] Fix condition check for page uid --- .../Extensions/femanager/10-setup-create.typoscript | 2 +- .../Extensions/femanager/20-setup-edit.typoscript | 4 ++-- .../femanager/30-setup-administration.typoscript | 2 +- .../40-setup-administration-invatiation.typoscript | 10 +++++----- .../Extensions/femanager/50-setup-temp-user.typoscript | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Configuration/TypoScript/Setup/Extensions/femanager/10-setup-create.typoscript b/Configuration/TypoScript/Setup/Extensions/femanager/10-setup-create.typoscript index 0e29231..3d1dbf6 100644 --- a/Configuration/TypoScript/Setup/Extensions/femanager/10-setup-create.typoscript +++ b/Configuration/TypoScript/Setup/Extensions/femanager/10-setup-create.typoscript @@ -93,7 +93,7 @@ plugin.tx_femanager { } } -[page["uid"] in [{$femanager.pids.createInstitutional}]] +[traverse(page, "uid") in [{$femanager.pids.createInstitutional}]] plugin.tx_femanager { # override "lastName" label _LOCAL_LANG.de.tx_femanager_domain_model_user.lastName = Gesetzlicher Vertreter diff --git a/Configuration/TypoScript/Setup/Extensions/femanager/20-setup-edit.typoscript b/Configuration/TypoScript/Setup/Extensions/femanager/20-setup-edit.typoscript index 5d158a7..c22522f 100644 --- a/Configuration/TypoScript/Setup/Extensions/femanager/20-setup-edit.typoscript +++ b/Configuration/TypoScript/Setup/Extensions/femanager/20-setup-edit.typoscript @@ -47,7 +47,7 @@ plugin.tx_femanager { } } -[page["uid"] == {$femanager.pids.editProfile}] +[traverse(page, "uid") == {$femanager.pids.editProfile}] plugin.tx_femanager { settings { showCompanyFields = 0 @@ -77,7 +77,7 @@ plugin.tx_femanager { [end] -[page["uid"] == {$femanager.pids.editEmail}] +[traverse(page, "uid") == {$femanager.pids.editEmail}] plugin.tx_femanager { view { partialRootPaths.101 = {$plugin.tx_femanager.view.partialRootPath}ChangeEmail/ diff --git a/Configuration/TypoScript/Setup/Extensions/femanager/30-setup-administration.typoscript b/Configuration/TypoScript/Setup/Extensions/femanager/30-setup-administration.typoscript index f2c75e2..9f92575 100644 --- a/Configuration/TypoScript/Setup/Extensions/femanager/30-setup-administration.typoscript +++ b/Configuration/TypoScript/Setup/Extensions/femanager/30-setup-administration.typoscript @@ -33,7 +33,7 @@ plugin.tx_femanager { } } -[page["uid"] == {$femanager.administration.pids.editUserUid}] +[traverse(page, "uid") == {$femanager.administration.pids.editUserUid}] plugin.tx_femanager { settings { showCompanyFields = 1 diff --git a/Configuration/TypoScript/Setup/Extensions/femanager/40-setup-administration-invatiation.typoscript b/Configuration/TypoScript/Setup/Extensions/femanager/40-setup-administration-invatiation.typoscript index 1dc15bb..6fa9adc 100644 --- a/Configuration/TypoScript/Setup/Extensions/femanager/40-setup-administration-invatiation.typoscript +++ b/Configuration/TypoScript/Setup/Extensions/femanager/40-setup-administration-invatiation.typoscript @@ -101,7 +101,7 @@ plugin.tx_femanager { } } -[page["uid"] in [{$femanager.administration.createNewUser.company.pid},{$femanager.administration.createNewUser.administration.pid},{$femanager.administration.createNewUser.institutional.pid}]] +[traverse(page, "uid") in [{$femanager.administration.createNewUser.company.pid},{$femanager.administration.createNewUser.administration.pid},{$femanager.administration.createNewUser.institutional.pid}]] plugin.tx_femanager { # override "lastName" label _LOCAL_LANG.de.tx_femanager_domain_model_user.lastName = Gesetzlicher Vertreter @@ -122,7 +122,7 @@ plugin.tx_femanager { } [END] -[page["uid"] == {$femanager.administration.createNewUser.private.pid}] +[traverse(page, "uid") == {$femanager.administration.createNewUser.private.pid}] plugin.tx_femanager { settings { @@ -140,7 +140,7 @@ plugin.tx_femanager { } [END] -[page["uid"] == {$femanager.administration.createNewUser.company.pid}] +[traverse(page, "uid") == {$femanager.administration.createNewUser.company.pid}] plugin.tx_femanager { settings { invitation { @@ -157,7 +157,7 @@ plugin.tx_femanager { } [END] -[page["uid"] == {$femanager.administration.createNewUser.administration.pid}] +[traverse(page, "uid") == {$femanager.administration.createNewUser.administration.pid}] plugin.tx_femanager { settings { invitation { @@ -174,7 +174,7 @@ plugin.tx_femanager { } [END] -[page["uid"] == {$femanager.administration.createNewUser.institutional.pid}] +[traverse(page, "uid") == {$femanager.administration.createNewUser.institutional.pid}] plugin.tx_femanager { settings { invitation { diff --git a/Configuration/TypoScript/Setup/Extensions/femanager/50-setup-temp-user.typoscript b/Configuration/TypoScript/Setup/Extensions/femanager/50-setup-temp-user.typoscript index 66fe491..53390ba 100644 --- a/Configuration/TypoScript/Setup/Extensions/femanager/50-setup-temp-user.typoscript +++ b/Configuration/TypoScript/Setup/Extensions/femanager/50-setup-temp-user.typoscript @@ -5,11 +5,11 @@ # - if private, continue with cookie # - if commercial, register a "temp commercial users" fe_users #################################################################### -[page["uid"] == {$config.kitodoPageView}] +[traverse(page, "uid") == {$config.kitodoPageView}] plugin.tx_femanager { # add dedicated template path view { - templateRootPaths.101 = {$plugin.tx_femanager.view.templateRootPath}TempUser/ + templateRootPaths.101 = {$plugin.tx_femanager.view.templateRootPath}TempUser/ } # set dedicated storagePid persistence {