[BUGFIX] CSC Header CE does not respect lib.parseTarget configuration 71/52571/5
authorHarry Glatz <glatz@analog.de>
Sat, 3 Sep 2016 09:59:38 +0000 (11:59 +0200)
committerBenni Mack <benni@typo3.org>
Tue, 17 Oct 2017 11:06:28 +0000 (13:06 +0200)
The TypoScript of the CSC header element does not respect
the global lib.parseTarget configuration

Resolves: #36216
Releases: 8.7, 7.6
Change-Id: I08ea6c59829a4a63b4aca6bf90b89223921b3fdf
Reviewed-on: https://review.typo3.org/52571
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Harry Glatz <harry.glatz@typo3.org>
Tested-by: Harry Glatz <harry.glatz@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Important-77830-CSC-HeaderLinkRespectsGlobalPageTarget.rst [new file with mode: 0644]
typo3/sysext/css_styled_content/Configuration/TypoScript/Helper/StandardHeader.txt

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Important-77830-CSC-HeaderLinkRespectsGlobalPageTarget.rst b/typo3/sysext/core/Documentation/Changelog/master/Important-77830-CSC-HeaderLinkRespectsGlobalPageTarget.rst
new file mode 100644 (file)
index 0000000..85633b8
--- /dev/null
@@ -0,0 +1,22 @@
+.. include:: ../../Includes.txt
+
+==========================================================
+Important: #77830 - CSC-HeaderLinkRespectsGlobalPageTarget
+==========================================================
+
+See :issue:`77830`
+
+Description
+===========
+
+Setting the global configuration :typoscript:`lib.parseTarget` was not respected by the header_link field.
+Now the configuration is properly applied and might change the output in the frontend.
+
+Impact
+======
+
+If the global setting :typoscript:`lib.parseTarget` is set, the field header_link will now respect it.
+If in addition the target of header_link is set in a content element, it will take precedence over
+:typoscript:`lib.parseTarget`.
+
+.. index:: Frontend, TypoScript
index cf7f829..56678da 100644 (file)
@@ -58,6 +58,9 @@ lib.stdheader {
         field = header
         htmlSpecialChars = 1
         typolink.parameter.field = header_link
+        typolink.target < lib.parseTarget
+        typolink.target =
+        typolink.target.override = {$styles.content.links.target}
     }
     10.key.field = header_layout
     10.key.ifEmpty = {$content.defaultHeaderType}