[Typo3-UG Oesterreich] Shop-Modul und ev. Auftrag

Wolfgang Klinger wolfgang at stufenlos.net
Thu May 13 10:20:01 CEST 2004


 Hallo!

 Anatol Mayr schrieb folgendes am 13.05.2004:
> weiss jemand, welche Schritte zu tun sind, damit ich im Shop-Modul-Backend
> statt die Artikelnummer in ein Textfeld einzugeben, eine Select-Box machen
> kann, die auf eine
> bestimmte Tabelle (z.B. Artikel aus Warenwirtschaft) zugreift?

 Hab' keine Ahnung von tt_shop, aber in etwa so:

 In der tca.php vom Shop Modul mußt du die Definition des Feldes 
 umändern auf z.B.:
---
"myfield" => Array (       
    "exclude" => 1,     
    "label" =>
    "LLL:EXT:myext/locallang_db.php:tx_myext_stuff.myfield",      
    "config" => Array (
        "type" => "select",
        "items" => Array (),
        "itemsProcFunc" => "tx_myext_myfield->main",
    )
),
---

 und tx_myext_myfield->main holt dir dann die Einträge aus der
 Datenbank:
---
class tx_myext_myfield {
    function main (&$params,&$pObj) {
        $params['items'][] = Array ('Bezeichnung', 1,
                                'Bezeichnung', 2);
    }
}
---


 Wolfgang

 --------------------------------------------------------
 Wolfgang Klinger           mailto:wolfgang at stufenlos.net
 
 Public Key: 
 http://www.stufenlos.net/wolfgang/stfl_wolfgang.gpg
 --------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-at/attachments/20040513/e89ea8a3/attachment.pgp 


More information about the TYPO3-at mailing list