[TYPO3] TMENU_LAYER
Bas van der Togt
b.vandertogt at profinit.com
Thu Jan 25 14:51:43 CET 2007
Another question :$
The allWrap below is also wrapping the cObject.
How can i exclude this?
NO {
before.cObject = COA |*| 0 |*|
before.cObject {
wrap = <cobject wrap>|</>
10 = RECORDS
10 {
source.field = pid
tables = pages
conf.pages = TEXT
conf.pages {
field = title
}
}
}
ATagParams = class="menu"
allWrap = <my wrap>|</>
}
cheers,
Bas
JoH asenau schreef:
>> 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
>
More information about the TYPO3-english
mailing list