[TYPO3-german] tt_news switch between category id's

Tobias Kabbeck ! medienmonster kabbeck at medienmonster.com
Thu Aug 19 12:11:44 CEST 2010


Does anybody know how to switch between 3 cases depending on tt_news category for gifbuilder?
The category id's are 11,12,13
Besides you see the different posibilities for the key i've tested without any result for the category id's.
The TS looks like this:


plugin.tt_news.displayList.image.stdWrap {
    cObject = CASE

#   cObject.key.data = {GPvar:tx_ttnews|tt_news}:cat
#   cObject.key.data = DB:tt_news:{GPvar:tx_ttnews|tt_news}:category
#   cObject.key.data = {GPvar:tx_ttnews|tt_news}:cat
#   cObject.key.data = {GPvar:tx_ttnews|tt_news}:category
#   cObject.key.data = GPvar:tx_ttnews|tt_news:cat
#   cObject.key.data = GPvar:tx_ttnews|tt_news:category
#   cObject.key.data = GPvar:tx_ttnews|category
#    cObject.key.data = register:newsCategoryUid

	 cObject.key.data = GPvar:tx_ttnews|cat
	    cObject {

    default = IMAGE
    default {
       file = GIFBUILDER
       file {
          XY = 111,111
         format = jpg
         quality = 88
         5 = IMAGE
         5.file.import = uploads/pics/
         5.file.import.field = image
         5.import.listNum = 0
         5.mask = fileadmin/img/mask1.png
       }
    }

    11 = IMAGE
    11 {
       file = GIFBUILDER
       file {
          XY = 111,111
         format = jpg
         quality = 88
         5 = IMAGE
         5.file.import = uploads/pics/
         5.file.import.field = image
         5.import.listNum = 0
         5.mask = fileadmin/img/mask2.png
       }
    }

    12 = IMAGE
    12 {
       file = GIFBUILDER
       file {
          XY = 111,111
         format = jpg
         quality = 88
         5 = IMAGE
         5.file.import = uploads/pics/
         5.file.import.field = image
         5.import.listNum = 0
         5.mask = fileadmin/img/mask3.png
       }
    }

    13 = IMAGE
    13 {
       file = GIFBUILDER
       file {
          XY = 111,111
         format = jpg
         quality = 88
         5 = IMAGE
         5.file.import = uploads/pics/
         5.file.import.field = image
         5.import.listNum = 0
         5.mask = fileadmin/img/mask4.png
       }
    }
  }
}

The Key don't work. Everytime the default case is executed. Has somebody an advice?


-- 

Tobias Kabbeck

medienmonster :: klang : video : grafik : netz
---------------------------------------------------------------------------------------------
Festung Friedrichsort | Deichweg 20 | 24159 Kiel | Germany
T +49 431 259 7440 | F +49 431 259 7489
kabbeck at medienmonster.com | www.medienmonster.com
Eintragung HRB 5273 beim Amtsgericht Kiel
---------------------------------------------------------------------------------------------



More information about the TYPO3-german mailing list