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

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

Open
zonky2 opened this issue May 8, 2020 · 0 comments
Open

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

zonky2 opened this issue May 8, 2020 · 0 comments
Assignees
Milestone

Comments

@zonky2
Copy link
Contributor

zonky2 commented May 8, 2020

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

@zonky2 zonky2 added this to the 2.2.0 milestone May 8, 2020
@zonky2 zonky2 modified the milestones: 2.2.0, 2.3.0 May 7, 2022
@zonky2 zonky2 modified the milestones: 2.3.0, 2.3.1 Oct 31, 2023
@zonky2 zonky2 modified the milestones: 2.3.1, 2.2.3, 2.4.0 Nov 10, 2023
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