Loading...
Navigation überspringen

Show details configuration in backend

return [
    'interface' => [
        'showDetailFields' => [
            'company' => [
                // Assign a translation key for fieldset label
                'label' => $lll . '.tab_company',
                'renderPartial' => 'Default',
                'fields' => [
                    'company' => [
                        'config' => [
                            'renderPartial' => 'Plain',
                            // Rows with renderPartial Plain needs a
                            // getter, so that they know which data
                            // needs to be displayed
                            'getter' => 'company',
                        ]
                    ],
                    'street' => [
                        'config' => [
                            'renderPartial' => 'Plain',
                            'getter' => 'company',
                        ]
                    ],
                    'city' => [
                        'config' => [
                            'renderPartial' => 'ProductRequest/Company',
                            // Field combines multiple fields in once
                            // like a palette, therefore we assign the
                            // palette key!
                            'palette' => 'postal_code_city',
                        ]
                    ],
                    'www' => [
                        'config' => [
                            'renderPartial' => 'Link',
                            'getter' => 'www',
                        ]
                    ],
                ],
            ],
            'contact_person' => [
                'label' => 'Contact person',
                'renderPartial' => 'Default',
                'fields' => [
                    'title' => [
                        'config' => [
                            'renderPartial' => 'ProductRequest/Contact',
                        ]
                    ],
                    'phone' => [
                        'config' => [
                            'renderPartial' => 'Plain',
                            'getter' => 'phone',
                        ]
                    ],
                    'email' => [
                        'config' => [
                            'renderPartial' => 'Link',
                            'getter' => 'email',
                        ]
                    ],
                    'position' => [
                        'config' => [
                            'renderPartial' => 'Plain',
                            'getter' => 'position',
                        ]
                    ],
                ],
            ],
            'description' => [
                'label' => 'Description',
                'renderPartial' => 'Full',
                'fields' => [
                    'description' => [
                        'config' => [
                            'renderPartial' => 'Rte',
                            'getter' => 'description',
                            // Hide this row field, if it's empty
                            // Note: If there a no visible rows in a
                            // fieldset, the whole fieldset will be
                            // hidden!
                            'hideIfEmpty' => true,
                        ]
                    ],
                ],
            ],
        ],
    ],
];

Kontaktanfrage

Sie können uns jederzeit kontaktieren

Contact request
Screenreader label
Security question
_T__________OJD______
XB_____N______D___7QM
_Y____W4N_____X______
_U_____F______H___PNX
S73___________6______