[TYPO3-UG Oesterreich] IRRE und Selectboxen mit Vorauswahl

Oliver Krammer o.k at i-kiu.at
Mon Apr 23 17:44:07 CEST 2012


Hallo Liste,

Ich möchte gerne mit IRRE folgendes Problem lösen, nur stehe ich 
komplett auf der Leitung.

Ich habe eine Vielzahl von Produkten, dies können eine beliebige Anzahl 
von Kategorien haben. Jede Kategorie hat mehrere Marken.
Ich hätten nun gerne wenn man bei eine Produkt eine Kategorie auswählt 
nur die verfügbaren Marken angezeigt werden. Was ich schaffe ich ist 
eine einfach Zuordnung, nur wie ich die Marken einschränke weiß ich nicht.

Vielleicht hat ja jemand eine Idee bzw. eine Link mit einem Howto für mich.

Danke & LG Oliver

$TCA['tx_iktum_kat_marke_rel'] = array (
     'ctrl' => $TCA['tx_iktum_kat_marke_rel']['ctrl'],
     'interface' => array (
         'showRecordFieldList' => 'hidden,marke'
     ),
     'feInterface' => $TCA['tx_iktum_kat_marke_rel']['feInterface'],
     'columns' => array (
         'hidden' => array (
             'exclude' => 1,
             'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
             'config'  => array (
                 'type'    => 'check',
                 'default' => '0'
             )
         ),
         "shopid" => Array (
             "label" => 
"LLL:EXT:irre_tutorial/locallang_db.xml:tx_irretutorial_hotel_offer_rel.hotelid",
             "config" => Array (
                 "type" => "select",
                 "foreign_table" => "tx_iktum_shops",
                 "maxitems" => 1,
                 'localizeReferences' => 1,
             )
         ),
         "katid" => Array (
             "label" => 
"LLL:EXT:irre_tutorial/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid",
             "config" => Array (
                 "type" => "select",
                 "foreign_table" => "tx_iktum_kat",
                 "maxitems" => 1,
                 'localizeReferences' => 1,
             )
         ),
         "markeid" => Array (
             "label" => 
"LLL:EXT:irre_tutorial/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid",
             "config" => Array (
                 "type" => "select",
                 "foreign_table" => "tx_iktum_marken",
                 "maxitems" => 99,
                 'localizeReferences' => 1,
             )
         ),
         "markesort" => Array (
             "config" => Array (
                 "type" => "passthrough",
             )
         ),
         "shopsort" => Array (
             "config" => Array (
                 "type" => "passthrough",
             )
         ),
         "katsort" => Array (
             "config" => Array (
                 "type" => "passthrough",
             )
         ),

     ),
     'types' => array (
         '0' => array('showitem' => 'hidden;;1;;1-1-1, 
shopid,katid,markeid,markensort,shopsort,katsort')
     ),
     'palettes' => array (
         '1' => array('showitem' => '')
     )
);


More information about the TYPO3-at mailing list