Discussion:
[TYPO3] GMENU how to get alias value and create image name from this value?
Mikolaj Jedrzejak
2007-11-12 01:52:18 UTC
Permalink
Hi, I have a problem... ;-)

I have created a GMENU

lib.GMenu = HMENU
lib.GMenu.1 = GMENU
lib.GMenu.1.NO {
XY = 200,200

10 = IMAGE
10.file = fileadmin/template/images/box/QUALITAET.gif
10.offset = 0,30

20 = IMAGE
20.file = fileadmin/template/images/box/box1.png
20.mask = fileadmin/template/images/box/box1_mask.png

30 = TEXT
30 {
text.field = title
fontFile = fileadmin/ttf/ARIALNBI.TTF
fontSize = 17
fontColor = #fefefe
niceText = 1
offset = 0,21
align = center
}

}

this generates boxes like this (on the right side):
Loading Image...

I would like to use alias name (which is without ? or other buggy letter
as my 10.file name insted of one image (QUALITAET.gif) like right now.
So I want to have as many images as my submenus in this boxes.

I hope this is possible ;-) so please point me to the right direction.

Best Regards
Mikolaj
JoH asenau
2007-11-12 02:03:47 UTC
Permalink
Post by Mikolaj Jedrzejak
I have created a GMENU
lib.GMenu = HMENU
lib.GMenu.1 = GMENU
lib.GMenu.1.NO {
XY = 200,200
10 = IMAGE
10.file = fileadmin/template/images/box/QUALITAET.gif
10.offset = 0,30
20 = IMAGE
20.file = fileadmin/template/images/box/box1.png
20.mask = fileadmin/template/images/box/box1_mask.png
30 = TEXT
30 {
text.field = title
fontFile = fileadmin/ttf/ARIALNBI.TTF
fontSize = 17
fontColor = #fefefe
niceText = 1
offset = 0,21
align = center
}
}
http://www.jedrzejak.pl/kopernik/gmenu.jpg
I would like to use alias name (which is without ? or other buggy
letter as my 10.file name insted of one image (QUALITAET.gif) like
right now. So I want to have as many images as my submenus in this
boxes.
Use the import property of IMAGE.file.
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/5/2/

So

10 = IMAGE
10.file {
import = fileadmin/template/images/box/
import {
field = alias
case = upper
wrap = |.gif
}
}

should do the job.

HTH

Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
Jobs: http://www.professionals-only.com
Mikolaj Jedrzejak
2007-11-12 02:41:57 UTC
Permalink
Post by JoH asenau
Use the import property of IMAGE.file.
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/5/2/
...
Post by JoH asenau
should do the job.
HTH
Joey
It did... thank you very much Joey.
I think I'll have to read all this tsref (not only parts I need in the
moment), but without live exapmles its sometimes not much... ;-)

Best Regards
Mikolaj

Loading...