From 6d6c91cd6301afaa19400ebb62cfc9b0c70b064e Mon Sep 17 00:00:00 2001 From: Julian Hofmann Date: Thu, 30 Jan 2025 20:40:26 +0100 Subject: [PATCH 1/2] [BUGFIX] Do not pretend to be a cObject `templateName` is of type string/stdWrap. However, the snippet gives the impression that it is a cObject due to `templateName = TEXT`. Working: ``` templateName = Default ``` Working ``` templateName.stdWrap.cObject = TEXT templateName.stdWrap.cObject.value = Default ``` *Not* working ``` templateName= TEXT templateName.value = Default ``` --- .../Fluidtemplate/_includes/_templateNameAutomatic.typoscript | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/ContentObjects/Fluidtemplate/_includes/_templateNameAutomatic.typoscript b/Documentation/ContentObjects/Fluidtemplate/_includes/_templateNameAutomatic.typoscript index dd16f960e..7aa4f5b9b 100644 --- a/Documentation/ContentObjects/Fluidtemplate/_includes/_templateNameAutomatic.typoscript +++ b/Documentation/ContentObjects/Fluidtemplate/_includes/_templateNameAutomatic.typoscript @@ -1,6 +1,5 @@ lib.stdContent = FLUIDTEMPLATE lib.stdContent { - templateName = TEXT templateName.stdWrap { cObject = TEXT cObject { From 0796cc34c61a156797d6effd1007a6edc8a7822c Mon Sep 17 00:00:00 2001 From: Julian Hofmann Date: Mon, 3 Feb 2025 09:51:01 +0100 Subject: [PATCH 2/2] [TASK] Remove unnecessary stdWrap No extra `stdWrap` is necessary. `templateName` has direct stdWrap behaviour. Related: #1513 --- .../Fluidtemplate/_includes/_templateNameAutomatic.typoscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ContentObjects/Fluidtemplate/_includes/_templateNameAutomatic.typoscript b/Documentation/ContentObjects/Fluidtemplate/_includes/_templateNameAutomatic.typoscript index 7aa4f5b9b..b3d78cb40 100644 --- a/Documentation/ContentObjects/Fluidtemplate/_includes/_templateNameAutomatic.typoscript +++ b/Documentation/ContentObjects/Fluidtemplate/_includes/_templateNameAutomatic.typoscript @@ -1,6 +1,6 @@ lib.stdContent = FLUIDTEMPLATE lib.stdContent { - templateName.stdWrap { + templateName { cObject = TEXT cObject { data = levelfield:-2,backend_layout_next_level,slide