[TYPO3] GMENU and wrapping text
Peter Klein
peter at umloud.dk
Tue Feb 14 13:21:10 CET 2006
Hi Matthew. Im not aware of any other ways to split GIFBUILDER objects, but
if you use a splitchar, you can use this little codesnippet to remove the
splitchar, before displaying, in case it's a regular text link..
-- cut --
10 = TEXT
10.cObject = TEXT
10.cObject.value = This is on the left of the split | This is on the right
of the split
10.cObject.split {
# Split the string at the "|" char
token = |
cObjNum = 1
1.current = 1
# Trim away any leading/trailing spaces
1.trim = 1
# Wrap each part with a space at the end.
1.noTrimWrap = || |
}
# Trim away the final trailing spaces
10.trim = 1
-- cut --
Note this is just a testsnippet, you'll have to implement it into your TS
setup..
--
Peter Klein/Umloud Untd
"LaPointe, Matthew" <MLaPointe at venterinstitute.org> skrev i en meddelelse
news:mailman.118.1139866654.20547.typo3-english at lists.netfielders.de...
Thank you. This works.
Rather than manually specifying the break point, is there a way to say
if the characters run out of the box, back up to the first space and
break there?
Matt
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Peter
Klein
Sent: Monday, February 13, 2006 3:25 PM
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] GMENU and wrapping text
Hi Matthew. Try searching for "gmenu splitchar" on Google (Searching the
mailarchive directly, usually doesn't give as good results as Google)
That should give you some clues, or look at this example..
http://www.typo3wizard.com/en/snippets/gifbuilder/mehrzeiliger-text-im-g
ifbuilder.html
---
Peter Klein / Umloud Untd
"LaPointe, Matthew" <MLaPointe at venterinstitute.org> wrote in message
news:mailman.15311.1139803769.6406.typo3-english at lists.netfielders.de...
Hello,
I have created a vertical GMENU. It works as expected, though I can't
figure out how to add a condition where if the text is longer than the
fixed width image, it wraps to the next line and grows the vertical
height of the image to allow for the wrapping.
Here's a visual of the graphical menu buttons:
This is fine:
------------------
| Menu Text |
------------------
Here's where I am having a problem:
------------------
| Some Menu Text Goes Here |
------------------
This is what I would like to be able to do:
------------------
| Some Menu Text |
| Goes Here |
------------------
Here's the typoscript I am working with:
lib.menu_left = HMENU
lib.menu_left.entryLevel = 1
lib.menu_left.1 = GMENU
lib.menu_left.1 {
special = list
special.value.field = uid
NO {
wrap = <div>|</div>
backColor = {$sectioncolors.color3}
XY = 163, 34
10 = TEXT
10.niceText=1
10.text.field = title
10.fontFile = fileadmin/fonts/MAIAN.TTF
10.fontSize=14
10.fontColor= {$sectioncolors.color5}
10.align = right
10.offset=-10,24
}
RO < .NO
RO=1
RO.10.fontColor = {$sectioncolors.color5}
ACT < .RO
ACT=1
}
Thank you for any help.
Matt
_______________________________________________
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