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>
--
Kind regards / met vriendelijke groet,
Jigal van Hemert.
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english