[TYPO3] Multilingual Tmenu with flags of each translation
Fred
hamel at urbansecurity.org
Wed Jul 4 17:17:50 CEST 2007
No, I don't know that.
Is it an extension ?
In fact, the matter is I'm trying to build my site with less extension
as possible, first because I'm a newbie (lol) then, because the people
who's gonna admin this site are worst than me.
I tried to insert a script in my menu like that :
temp.menu_2.2 {
# Normal state properties
NO{
#linkWrap =   |  
#before.data = field:uid
#allWrap = <tr><td class="menu_2_lvl_2_no"> | </td></tr>
allWrap.cObject = COA
allWrap.cObject{
10 = TEXT
10.value = <tr><td class="menu_2_lvl_2_no">
20 = PHP_SCRIPT
20.file=fileadmin/media/scripts/test_fun.inc
30 = TEXT
30.value = | </td></tr>
}
}
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <tr><td class="menu_2_lvl_2_ac"> | </td></tr>
}
The test script is only :
<?php
function my_new_test(){
$content = "[FR]";
return $content;
}
?>
But I have an error saying : "*Fatal error*: Cannot redeclare
my_new_test() (previously declared in
C:\www\draft.urbansecurity.org\_alpha\fesu_typo3\fileadmin\media\scripts\test_fun.inc:4)
in
*C:\www\draft.urbansecurity.org\_alpha\fesu_typo3\fileadmin\media\scripts\test_fun.inc*
on line *3*
"
And when I try to use Kasper's selector it's (of course) only related to
the current uid whereas I want to use the item's one.
Andreas Becker a écrit :
> Hi Fred
>
> Have you checked out sr_languageMenu how he is doing it? Might be
> helpfull
> for you too.
>
> Andi
>
> 2007/7/4, Fred <hamel at urbansecurity.org>:
>>
>> Hello,
>>
>> I have a multi-lingual site on 5 languages, the Kasper's selector works
>> very well but I want to do something a bit different : to put a selector
>> for each item, that means this kind of menu :
>>
>> Firs Level
>> |_ Second Level
>> |__ [GB][FR]First article
>> |__ [GB][IT][FR]Second article
>> |__ [GB]Third article
>> and so on
>>
>> That's my TS menu
>>
>> temp.menu_2 = HMENU
>> temp.menu_2.entryLevel = 2
>> # First level menu-object, textual
>> temp.menu_2.1 = TMENU
>> temp.menu_2.1 {
>> # Normal state properties
>> NO.allWrap = <tr><td class="menu_2_lvl_1"> | </td></tr>
>> }
>> # Second level menu-object, textual
>> temp.menu_2.2 = TMENU
>> temp.menu_2.2 {
>> # Normal state properties
>> NO.linkWrap = <td class="menu_2_lvl_2_no"> | </td>
>> NO.allWrap = <tr class="toto">|</tr>
>> # Enable active state and set properties:
>> ACT = 1
>> ACT.allWrap = <tr><td class="menu_2_lvl_2_ac"> | </td></tr>
>> }
>>
>> I'm trying to put Kasper's selector in it but I can't find out how to do
>> it.
>> Does anyone have an idea ? I'd be very greatfull.
>>
>> Thanx !
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
More information about the TYPO3-english
mailing list