Skip to content
Snippets Groups Projects
Commit 855193aa authored by Mats Svensson's avatar Mats Svensson Committed by Susanne Moog
Browse files

[BUGFIX] Support target in fluid_styled_content menus

Add condition and only render target attribute if set on page.

Resolves: #82464
Releases: master, 8.7
Change-Id: I14c561188f1e8a7389b145adf85c64918e61d461
Reviewed-on: https://review.typo3.org/54160


Reviewed-by: default avatarBenjamin Kott <benjamin.kott@outlook.com>
Tested-by: default avatarBenjamin Kott <benjamin.kott@outlook.com>
Reviewed-by: default avatarSascha Wilking <sascha.wilking@hmmh.de>
Tested-by: default avatarSascha Wilking <sascha.wilking@hmmh.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent f4b66731
Branches
Tags
No related merge requests found
Showing
with 12 additions and 12 deletions
......@@ -6,7 +6,7 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
<f:if condition="{page.data.abstract}">
......
......@@ -6,7 +6,7 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
</li>
......
......@@ -6,7 +6,7 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
</li>
......
......@@ -6,7 +6,7 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
</li>
......
......@@ -6,7 +6,7 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
</li>
......
......@@ -6,7 +6,7 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
<f:if condition="{page.content}">
......@@ -14,7 +14,7 @@
<f:for each="{page.content}" as="element">
<f:if condition="{element.data.header}">
<li>
<a href="{page.link}#c{element.data.uid}" target="{page.target}" title="{element.data.header}">
<a href="{page.link}#c{element.data.uid}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{element.data.header}">
<span>{element.data.header}</span>
</a>
</li>
......
......@@ -6,14 +6,14 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
<f:if condition="{page.content}">
<ul>
<f:for each="{page.content}" as="element">
<li>
<a href="{page.link}#c{element.data.uid}" target="{page.target}" title="{element.data.header}">
<a href="{page.link}#c{element.data.uid}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{element.data.header}">
<span>{element.data.header}</span>
</a>
</li>
......
......@@ -11,7 +11,7 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
<f:render section="Menu" arguments="{menu: page.children}" />
......
......@@ -11,7 +11,7 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
<f:render section="Menu" arguments="{menu: page.children}" />
......
......@@ -6,7 +6,7 @@
<ul>
<f:for each="{menu}" as="page">
<li>
<a href="{page.link}" target="{page.target}" title="{page.title}">
<a href="{page.link}"{f:if(condition: page.target, then: ' target="{page.target}"')} title="{page.title}">
<span>{page.title}</span>
</a>
</li>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment