Skip to content

Commit 31b35e3

Browse files
committed
[BUGFIX] update editMode TypoScript condition syntax
1 parent f8b12ee commit 31b35e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Configuration/TypoScript/setup.typoscript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tt_content.stdWrap.wrapContentElementsWithVeWrapper = 1
66
# add parameter editMode to every link in edit mode.
77
config.linkVars = editMode(1)
88

9-
# disable admin panel if editMode is set.
10-
[globalVar = GP:editMode = 1]
9+
# disable admin panel if editMode is set. this most likely dose not work as this setup.typoscript file is loaded as one of the first typoscript files
10+
[request && traverse(request.getQueryParams(),'editMode') == 1]
1111
config.admPanel = 0
12-
[global]
12+
[end]

0 commit comments

Comments
 (0)