We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    I’m about to create CMP for editing custom-tables where I connect TVs (input-type, default-value, options and so on) to table-fields.
    See screenshot.

    My config for that is now ’hardcoded’ in my class:

    			'tabs' => array(
                    array(
                        'caption'=>'Allgemein',
                        'fields'=>array(
                        array(
                            'field'=>'firma_resource',
                            'caption'=>'Firma',
                            'inputTV'=>'firma'
                        ),
                        array(
                            'field'=>'pagetitle',
                            'caption'=>'Titel'
                        ),
                        array(
                            'field'=>'stellenanzahl',
                            'caption'=>'Anzahl Stellen'
                        ),
                        array(
                            'field'=>'type',
                            'caption'=>'Typ',
                            'inputTV'=>'stellenangebot_typ'
                    ))),
                    array(
                        'caption'=>'Content',
                        'fields'=>array(
                        array(
                            'field'=>'content',
                            'caption'=>'Beschreibung',
                            'inputTV'=>'multitest'
                    )))),
            ),$config);


    what is the best way to make this configs flexible for different tables and form-panels. Is there allready a place where we can make this kind of configs?
    My idea is to create chunks and make these configs there in xml-format. Then I only need a property ’formchunk’ to get the right formview.
    Or is there a suggested better way to do this.
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!