[TYPO3-english] Split within menu

Jan Bednarik info at bednarik.org
Wed May 16 18:30:50 CEST 2012


Hey,

I want to create a menu from pages, in resources of these pages I've got 
3 images. I want to display those images instead of page titles and give 
them classes fst, snd, trd.

To have:

<div>
<img src="page1" class="fst"><img class="snd"><img class="trd>
</div>
<div>
<img src="page2" class="fst"><img class="snd"><img class="trd>
</div>
<div>
<img src="page3" class="fst"><img class="snd"><img class="trd>
</div>

I've got this:

1.NO.stdWrap.override.cObject = TEXT
   1.NO.stdWrap.override.cObject {
     field = media
     split {
      token = ,
      cObjNum = 1||2||3
     1 {
      10 = IMAGE
       10.params = class="fst"
       10 {
        file.import = uploads/media/
        file.import.current = 1
        file.height = 252
        file.width = 252
       }
     }
       2 {
      10 = IMAGE
       10.params = class="snd"
       10 {
        file.import = uploads/media/
        file.import.current = 1
        file.height = 252
        file.width = 252
       }
     }
       3 {
      10 = IMAGE
       10.params = class="trd"
       10 {
        file.import = uploads/media/
        file.import.current = 1
        file.height = 252
        file.width = 252
       }
     }

But this is giving me 3 images of class fst, then for the second menu 
item 3 images of class snd, and at last 3 images of class trd. It's like 
the cObjNum is driven by menu item rather than split obj number.

I've tried

10.params = class="fst"||class="snd"||class="trd"

but that was the same.

Any ideas?

Thanks

Jan


More information about the TYPO3-english mailing list