Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new filtering and search for properties of a field #536

Closed
zonky2 opened this issue May 12, 2020 · 1 comment
Closed

new filtering and search for properties of a field #536

zonky2 opened this issue May 12, 2020 · 1 comment

Comments

@zonky2
Copy link
Contributor

zonky2 commented May 12, 2020

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'"
        ),
@zonky2
Copy link
Contributor Author

zonky2 commented May 18, 2020

duplicted #535

@zonky2 zonky2 closed this as completed May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants