Skip to content

Possibility to search or filter for properties of a property #535

@zonky2

Description

@zonky2

Possibility to search or filter for properties of a property

For example, for MM in table tl_metamodel_rendersetting and tl_metamodel_dcasetting:

Here, filtering according to the type of the attributes and searching by name and column name of the attribute.

maybe with new DCA nodes

        'attr_id'          => array
        (
            'label'          => &$GLOBALS['TL_LANG']['tl_metamodel_rendersetting']['attr_id'],
            'exclude'        => true,
            'inputType'      => 'select',
            'eval'           => array(
                'doNotSaveEmpty'     => true,
                'alwaysSave'         => true,
                'submitOnChange'     => true,
                'includeBlankOption' => true,
                'mandatory'          => true,
                'chosen'             => true,
                'tl_class'           => 'w50'
            ),
+            'filter_related' => 'type',
+            'search_related' => ['colname', 'name'],
            'sql'            => "int(10) unsigned NOT NULL default '0'"
        ),

reason for MetaModels/core#1394

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions