[TYPO3] Re: [Typo3] IMGMENU (+calc) problems
Jacco Lammers
jlammers at sundayafternoon.nl
Tue Oct 3 14:47:59 CEST 2006
Hi list,
This works:
## level1 IMG-menu
temp.menu_1 = HMENU
temp.menu_1.maxitems = 6
temp.menu_1.entryLevel = 0
# First level menu-object, graphical
temp.menu_1.1 = GMENU
temp.menu_1.1.applyTotalW = 5
temp.menu_1.1.min = 490,
temp.menu_1.1.max = 490,
temp.menu_1.1.NO {
XY = [10.w]+20, 17
5 = IMAGE
5.file = image-1.jpg
5.width = 490
10 = TEXT
10 {
text.field = title
fontSize = 11
fontColor = white
fontFile = fonts/font.ttf
offset = 0,13
imgMap.explode = 3,2
niceText = 1
align = center
case = lower
}
}
temp.menu_1.1.RO < temp.menu_1.1.NO
temp.menu_1.1.RO = 1
temp.menu_1.1.RO {
10.fontColor = black
5.file >
}
temp.menu_1.1.ACT < temp.menu_1.1.NO
temp.menu_1.1.ACT = 1
temp.menu_1.1.ACT {
10.fontColor = black
5.file >
}
Peter Klein wrote:
> "Jacco Lammers" <jlammers at sundayafternoon.nl> skrev i en meddelelse
> news:mailman.1.1125325488.19463.typo3-english at lists.netfielders.de...
>
>>Best list,
>>
>>I've got a working IMGMENU running, but with creating active state
>>properties I encounter a problem: the BOX (4.dimensions) will not do
>>+calc. It just creates a box of 10px width instead of the wanted [4.w]+10.
>>Is this a bug or am I doing something wrong? Any ideas someone?
>>
>>...
>>temp.menu_1.1.ACT = 1
>>temp.menu_1.1.ACT {
>> # Active state properties
>> distrib = textX+20, 0
>>
>> 20 = TEXT
>> 20 {
>> backColor = white
>> text.field = title
>> fontSize = 11
>> fontColor = black
>> fontFile = t3lib/fonts/SSCBd.ttf
>> offset = 25,9
>> imgMap.explode = 3,2
>> niceText = 1
>> align = center
>> }
>>
>> 4 = BOX
>> 4.color = white
>># And this will not work properly:
>> 4.dimensions = -10,-3,[20.w]+10,17
>> 4.align = center
>>}
>>...
>>
>
>
> Hi Jacco. It could be that the 20 object gets created AFTER the 4 object (no
> matter whice order you place them in.).
> So the width of the 20 object haven't been defined yet.
>
More information about the TYPO3-english
mailing list