Backend list records TYPO3 extension

639 views Asked by At

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:

  • News
    • News
    • News cat
    • Inventory

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

  • News

    • News
    • News cat
  • Inventoy

    • inventory item

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')
)
);
?>
0

There are 0 answers