[TYPO3-english] Lang hmenu : allwrap -> bad html code...

Gregory Loichot gloichot at cross-systems.com
Mon Aug 15 14:01:46 CEST 2011


Hi,

Thank you for your answer. So an other question comes out : is it 
possible to put "fr", "de", ... into a constant ??

Thanks,
Greg

On 15. 08. 11 13:09, Jigal van Hemert wrote:
> Hi,
>
> On 15-8-2011 12:04, Gregory Loichot wrote:
>> Hello,
>>
>> I'm working on a TYPO3 4.5.4 and writing a lang menu. To to this, I
>> defined some constants:
>>
>> site.lang {
>> uids = 0,1,2,3,4
>> labels = Français||Deutsch||Italiano||English||Español
>> titleLabels = Français||Deutsch||Italiano||English||Español
>> classes = fr||de||it||en||es
>> }
>>
>> ... and building my menu:
>>
>> allWrap = <li class="first {$site.lang.classes}">|</li>|*|<li
>> class="{$site.lang.classes}">|</li>|*|<li class="{$site.lang.classes}
>> last">|</li>
>
>> As you can see, "allWrap" instruction is supposed to include "fr", "de",
>> "en", "it" or "es". But this is what is generated:
>
> No, it is not supposed to include one of those; it does exactly what
> optionSplit is supposed to do.
> With the constant replaced the allWrap looks like this:
>
> allWrap = <li class="first fr||de||it||en||es">|</li>|*|<li
> class="fr||de||it||en||es">|</li>|*|<li class="fr||de||it||en||es
> last">|</li>
>
> The |*| separates the first, middle and last block and the || separate
> the subparts of first, middle and last.
>
> This is why the allWrap becomes for each language:
>
> <li class="first fr
> de
> it
> en
> es">|</li>
>
> ... etc.
>
> I think you want something like:
>
> allWrap = <li class="first fr">|</li>||<li class="de">|</li>||<li
> class="it">|</li>||<li class="en">|</li>||<li class="es last">|</li>
>



More information about the TYPO3-english mailing list