[TYPO3] TMENU_LAYER
JoH asenau
info at cybercraft.de
Thu Jan 25 13:52:49 CET 2007
> I combined your last two posts but it's still not working.
> My first level is a GMENU_LAYER because it have to show some pics. My
> second level is a TMENU_LAYER. This level have to render this:
>
> Title level 1 (only once)
> title item 1 level 2
> title item 2 level 2
> title item 3 level 2
> etc etc
>
> I tried this code:
> --- CUT ---
> NO {
> before.cObject = TEXT |*| 0 |*|
> before.cObject {
> 5 = TEXT
> 5 {
> text.cObject = COA
> text.cObject {
> 10 = RECORDS
> 10 {
> source.field = pid
> tables = pages
> conf.pages = TEXT
> conf.pages {
> field = title
> }
> }
> }
> }
> }
> beforeWrap =
> ATagParams = class="menu"
> allWrap = |
> }
> --- CUT ---
>
> Hopefuly ypu can help me one more time.
> And sorry for the obscurity.
Well you mixed different stuff here. The "5 = TEXT" part was meant to be
used inside a GIFBUILDER/GMENU element. You can't simply put this into a
TEXT element.
So first you should decide, if you want an IMAGE or a TEXT for the title.
And then use _one_ of the following snippets.
before.cObject = IMAGE |*| 0 |*|
before.cObject {
wrap = <yourwrap>|</goeshere>
file = GIFBUILDER
file {
# your GIFBUILDER setup
# and for the TEXT part use
5 = TEXT
5 {
text.cObject = COA
text.cObject {
10 = RECORDS
10 {
source.field = pid
tables = pages
conf.pages = TEXT
conf.pages {
field = title
}
}
}
}
}
}
or
before.cObject = COA |*| 0 |*|
before.cObject {
wrap = <yourwrap>|</goeshere>
10 = RECORDS
10 {
source.field = pid
tables = pages
conf.pages = TEXT
conf.pages {
field = title
}
}
}
Got the point?
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
More information about the TYPO3-english
mailing list