http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692022-02-10T09:38:00ZTYPO3 ForgeTYPO3 Core - Bug #93544: Template overriding for FluidMail ignoring index of pathhttp://forge.typo3.org/issues/93544?journal_id=4635792022-02-10T09:38:00ZRamon Zöllner
<ul></ul><p>I ran into this issue as well and this is what I found:</p>
<p><strong>Short Version</strong> <br />the sorting of paths is skipped when using the constructor of <br /><pre><code class="php syntaxhl" data-language="php"><span class="nc">TYPO3Fluid\Fluid\View\TemplatePaths</span>
</code></pre><br />with an array.</p>
<p><strong>Longer Version</strong></p>
<p>In FluidEmail::initializeView we have<br /><pre><code class="php syntaxhl" data-language="php"><span class="nv">$templatePaths</span> <span class="o">=</span> <span class="nv">$templatePaths</span> <span class="o">??</span> <span class="k">new</span> <span class="nc">TemplatePaths</span><span class="p">(</span><span class="nv">$GLOBALS</span><span class="p">[</span><span class="s1">'TYPO3_CONF_VARS'</span><span class="p">][</span><span class="s1">'MAIL'</span><span class="p">]);</span>
</code></pre></p>
<p>The constructor of TYPO3Fluid\Fluid\View\TemplatePaths calls <br /><pre><code class="php syntaxhl" data-language="php"><span class="nc">TemplatePaths</span><span class="o">::</span><span class="n">fillFromConfigurationArray</span>
</code></pre><br />which extracts the different path parts via <br /><pre><code class="php syntaxhl" data-language="php"><span class="nc">TemplatePaths</span><span class="o">::</span><span class="n">extractPathArrays</span>
</code></pre> <br />but during this process the numerical indices are lost and the paths can not be sorted later.</p>
<p>Normally the TYPO3 implementation of TYPO3\CMS\Fluid\View\TemplatePaths takes care of path sorting, but only for paths that are configured in TypoScript (as far as I can tell).</p>
<p>As the error is not limited to Mailer, but all instances where template overriding is done in PHP and not TypoScript, I think this is more of a Fluid issue than Mailer API.</p> TYPO3 Core - Bug #93544: Template overriding for FluidMail ignoring index of pathhttp://forge.typo3.org/issues/93544?journal_id=4696292022-06-02T13:50:27ZHartmut Steglich
<ul><li><strong>TYPO3 Version</strong> changed from <i>10</i> to <i>11</i></li></ul><p>Same issue still with TYPO3 11.5.10</p>
<p>Are there any workarounds (like using TS)?</p> TYPO3 Core - Bug #93544: Template overriding for FluidMail ignoring index of pathhttp://forge.typo3.org/issues/93544?journal_id=5114222024-03-05T18:45:34ZStephan Bauerstephan_bauer@gmx.de
<ul></ul><p>Same in 12.4.10</p>