jvermolen
jvermolen

Reputation: 52

Backend list records TYPO3 extension

I'm trying to create my first TYPO3 extension, with backend list records.

Now I can register my own list records, but they are registert under tt_news like this:

Of course I want to make my extension have it's own parent category like tt_news has.

Does anybody have experience with this?

My ext_tables.php so far:

<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');

$TCA['tx_inventory_domain_model_product'] = array (
'ctrl' => array (
        'title' => 'Inventory',
        'label' => 'name',
),
'columns' => array(
        'name' => array(
        'label' => 'Item Label',
                'config' => array(
                        'type' => 'input',
                        'size' => '20',
                        'eval' => 'trim,required'
                )
        ),
        'description' => array(
                'label' => 'Item Description',
                'config' => array(
                        'type' => 'text',
                        'eval' => 'trim'
                )
        ),
        'quantity' => array(
                'label' => 'Stock Quantity',
                'config' => array(
                        'type' => 'input',
                        'size' => '4',
                        'eval'=> 'int'
                )
        ),
),
'types' => array(
        '0' => array('showitem' => 'name, description, quantity')
)
);
?>

Upvotes: 1

Views: 636

Answers (0)

Related Questions