aDaneInSpain / component-creator-issues

A code-free repository for handling issues and feature requests for Component Creator for Joomla
https://www.component-creator.com
11 stars 0 forks source link

Multiple select field - CMS filter allow to select only one option #714

Open MaverickPOZ opened 7 months ago

MaverickPOZ commented 7 months ago

When we have multiple select field (SQL, Foreign, Select list), there should be multiple select option in CMS filter.

MaverickPOZ commented 6 months ago

Guys, we really need that functionality to select more than one option in all filter fields. This is not that hard but give us power mode to filter ! By default the category filter in articles list view already have that.

In forms folder just add to XML filter fields (list / select / sql / etc) below params:

multiple="true" layout="joomla.form.field.list-fancy-select" class="js-select-submit-on-change"

And now edit model folder with XML just like default CMS category field in articles list.

I done it by myself but I must edit all files after update component install.

Final effect should be like below:

Screenshot

aDaneInSpain commented 6 months ago

Thank you for the suggestion. I am right in assuming that this would make ALL the filters multiselect, so that the best way to implement this would be to add a new checkbox in the interface that shows "[ ] Allow multiple selections" ?

MaverickPOZ commented 6 months ago

I think that additional checkbox field in JCC is not required. In J4 all select / list fields should have multiple option select with search ability. Multiselect in edit form view is something else, we are talking only about data filtering in items list view.

aDaneInSpain commented 6 months ago

Ah yes. So this is for filtering. Is Joomla offering this type of filter in their lists? If not, any idea why not? Wondering if it would make sense to also submit to Joomla core.

MaverickPOZ commented 6 months ago

Yes - as I mentioned - please look at category filter in article list view.

MaverickPOZ commented 6 months ago

In J4 we have by default many filter fields that allow to select multiple options and search by string. In JCC we have only to choose one option. No search or multi select ability. Screenshot