[Typo3] GMENU, Long names, and images
Scotty C
superscotty19 at yahoo.com
Fri Jul 8 19:42:13 CEST 2005
Hi everyone!
Well, after some exhausting research, I figured it out
on my own. But in case there's anyone else having this
problem, here's the best solution I found. You need to
use the listNum and optionSplit parameters of the TEXT
object. My code looks like this (Note: I am using menu
items with 2 words, split by "|". To split the items,
you MUST name the pages accordingly (ex. Name the page
"Special | Projects", without the quotes)):
# HHHierarchical menu
subparts.TOPMENU = HMENU
# GMENU TIME BABAY!!!!!!!!!!!!!!!
subparts.TOPMENU.1 = GMENU
# NO represents the NOrmal state of the button
subparts.TOPMENU.1.NO {
# width,height of button
XY = 123,29
4 = IMAGE
4.file = buttonface_up.jpg
# This is the code for the "Special" component
# of "Special Projects"
10 = TEXT
10 {
# make value of each item = title of each page!
text.field = title
fontSize = 13
offset = 0,[4.h]-8
align = center
#niceText = 1
fontColor = black
fontFile = fileadmin/fonts/BNKGOTHM.TTF
antiAlias = 1
#textMaxLength = 5
# *** THE ZINGER ****
# Grab item 0 of the list (i.e. "Special")
# and display it
text.listNum = 0
# Split the item by the character specified
# the next item displayed will be everything
# after this character
text.listNum.splitChar = |
shadow.offset = 2,2
shadow.blur = 50
shadow.opacity = 60
}
# This is the code for the "Projects" component
# of "Special Projects"
11 = TEXT
11 {
text.field = title
fontSize = 13
offset = -2,[4.h]-17
align = center
fontColor = black
fontFile = fileadmin/fonts/BNKGOTHM.TTF
antiAlias = 1
# *** THE ZINGER ****
# Grab item 1 of the list (i.e. "Projects")
# and display it
text.listNum = 1
text.listNum.splitChar = |
shadow.offset = 2,2
shadow.blur = 50
shadow.opacity = 60
}
# end subparts.topmenu
}
I hope this may be of use!
-Scott.
--- Scotty C <superscotty19 at yahoo.com> wrote:
> Hello,
>
> A while back, someone asked how to make a GMENU with
> long entries wrap. For example:
>
> +------------------+
> | Special Projects |
> +------------------+
>
> Becomes ....
>
> +----------+
> | Special |
> | Projects |
> +----------+
>
> Unfortunately, I am not able to access the archive
> containing the solution to this issue any longer and
> I
> was wondering if anyone knew how to do this? Here's
> what I have so far:
>
> subparts.TOPMENU.1.NO {
> XY = [10.w]+20,29
>
> 4 = IMAGE
> 4.file = buttonface_up.jpg
>
> 10 = TEXT
> 10.text.field = title
> 10.fontSize = 13
> 10.offset = 2,20
> 10.align = center
> #10.niceText = 1
> 10.fontColor = black
> 10.fontFile = fileadmin/fonts/BNKGOTHM.TTF
> 10.antiAlias = 1
>
> 10.shadow.offset = 2,2
> 10.shadow.blur = 50
> 10.shadow.opacity = 60
> }
>
> Thanks!
> -Scott.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
>
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
More information about the TYPO3-english
mailing list