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

Proposal: Add "Allow multiple select" option to express attribute type #5718

Open
hissy opened this issue Jul 18, 2017 · 24 comments
Open

Proposal: Add "Allow multiple select" option to express attribute type #5718

hissy opened this issue Jul 18, 2017 · 24 comments
Labels
Affects:Content Creators Affects those who use the UI to create or edit content. Enhancement:Level Of Effort:2 Enhancements requiring a moderate level of effort required. Enhancement:Quality of Life:2 Enhancements that will have a moderate to large improvement in quality of life Product Areas:Express Status:Available Reviewed issue, it’s real, we’d review a pull request. Type:Enhancement A need for something new.

Comments

@hissy
Copy link
Contributor

hissy commented Jul 18, 2017

Sometimes I'd like to select multiple entries with express attribute type. Database structure allows multiple select, but attribute controller doesn't allow it.

Here's a package to implement a new attribute type to select multiple express entries.

https://github.com/hissy/addon_multiple_express_entry_selector

It simply extends core express attribute controller but overrides some methods. That's it. Let's add an option!

@aembler
Copy link
Member

aembler commented Jul 18, 2017 via email

@hissy
Copy link
Contributor Author

hissy commented Jul 18, 2017

I think we have to change searchIndexFieldDefinition to add the option, but can I do it?

I already changed the definition in my experimental package. see:
https://github.com/hissy/addon_multiple_express_entry_selector/blob/master/attributes/express_multiple/controller.php#L12

@aembler
Copy link
Member

aembler commented Jul 19, 2017 via email

@aembler aembler added Status:Available Reviewed issue, it’s real, we’d review a pull request. priority:like to have Type:Enhancement A need for something new. labels Sep 29, 2017
@aembler aembler added this to the Future milestone Sep 29, 2017
@MrKarlDilkington
Copy link
Contributor

Now that I've spent more time using Express, and specifically express attributes, I can see multiple express attribute selection being very useful and important for making the most of Express.

@mrdansk
Copy link

mrdansk commented Dec 6, 2017

Are any of you able to provide a bit of assistance with this? I've created a user attribute that uses this addon to create a multi-select express attribute. I am just looking at how to set that attribute from an array passed in via a .csv. For the life of me I can't work this out.

@aembler aembler removed this from the Future milestone Mar 5, 2018
@ahukkanen
Copy link
Contributor

I was also looking for this and noticed it's already kind of a feature in the existing attribute. I just needed to extend the current express controller with quite minimal changes + create the UI, no database changes required.

One thing I noticed is missing from the current database mapping table is to have ordering possibility for the selected values. The selected attributes will always come in the order they were added to the database, i.e. sorted by the entries' primary ID column.

It would be nice if the multi select attribute would also provide ordering possibility. It is many times required for the use cases of the multi-select attributes.

@aembler aembler added Affects:Content Creators Affects those who use the UI to create or edit content. Product Areas:Express and removed Recategorize:Priority labels Jan 8, 2020
@marcelaerts
Copy link

Is this working now?

@BloodyIron
Copy link

Can we get this added to mainline c5 please? This addon is abandoned and trying to get it working with c5 8.5.0a2 reports broken package. This really should be a baked-in feature, not one relying on the addon.

It is appreciated that the addon was written, but it looks like the original developer isn't interested in maintaining it. And we already have multiple people, including @MrKarlDilkington , agreeing that this would be very useful to have.

@hissy
Copy link
Contributor Author

hissy commented May 15, 2020

The package works with 8.5.2 as well. I think your directory name is wrong, it should be multiple_express_entry_selector instead of addon_multiple_express_entry_selector .

@BloodyIron
Copy link

@hissy ahh thanks! Yeah I didn't realise that, as I just grabbed the zip from github and that's the folder it output. Unsure why the folder is named like that if it's wrong out of the box, HAH!

@hissy
Copy link
Contributor Author

hissy commented May 15, 2020

If I have a chance, I can try to implement it for version 9.

@BloodyIron
Copy link

Is 8.6 out of the question? v9 seems so distant in time.

@hissy
Copy link
Contributor Author

hissy commented May 15, 2020

You can use my package while 8.x ;-)

@BloodyIron
Copy link

Fair enough lol. Thanks again! :D

@BloodyIron
Copy link

So, considering it is uncertain which year v9 will come out, can we please look at getting this functionality baked into an 8.5.5 target? This github issue alone has been open since 2017, I think it's time this gets mainlined.

@BloodyIron
Copy link

BloodyIron commented Sep 29, 2020

So I've tried using the Express Multi-Select, and in my dev testing (8.5.4) When I add the multi-select addon manually that @hissy developed, I cannot use Single and Multi-Select attributes on the same Express Object, which is a problem for me.

Example scenario:

First Object, is an Event Location (hotel)

Second Object is an Event Location set of Sub-Sections (multiple meeting rooms, halls, etc)

Second Object is Events

Naturally, the Event Location associates with multiple Sub-Locations in a One-to-Many relationship. That works.

Then I create an Event Location, and two Event Location Sub-Sections. Associate the two Sub-Sections with the test Event Location, and that works.

Then I create the Event Object in such a way that it has two associations:
-Event Object associated with Event Location Object, in (Event) Many-To-One (Location) relationship
-Event Object associated with Event Location Sub-Sections (Event) Many-To-Many (Location Sub-Sections) relationship

Then when I define the Event Object I have Name Attribute, Single Express Select (Location) and Multi Express Select (Location Sub-Sections).

I then make a form with Name Attribute, Single Express Select, and Multi-Express Select.

I can enter the Name for the event, but Single Express Select presents NO options (when I know a location exists) BUT Multi-Express Select does work.

I think the issue is when using a Single Express Select AND Multi-Express Select on the same object, disabling the Single Express Select (and I really do need both to work for many reasons!).

Sorry, bit of a word-ful explanation :/

@BloodyIron
Copy link

Hey so I'm still stuck here. If anyone can help me sort out what's going on, that would be appreciated. :)

@BloodyIron
Copy link

Would a screenshot of what I'm seeing help? I haven't heard anything back on this. :( Still stuck.

@dimger
Copy link
Contributor

dimger commented Oct 14, 2020

i think the problem here https://github.com/hissy/addon_multiple_express_entry_selector/blob/master/attributes/express_multiple/form.php is the selector that is used on selectize call.
Every input of this type that belongs to the same entity will have the same selector.
So i would recommend you to try making this selector more spesific.

@BloodyIron
Copy link

@dimger is this addressed with the commits you posted on the repo for it? :D

@dimger
Copy link
Contributor

dimger commented Oct 14, 2020

@BloodyIron yes i think so :)

@BloodyIron
Copy link

@dimger could swear I posted here, but it's actually still broken for me. I updated with the new master branch (as of a few days ago) and when using the dashboard to enter an Express Entry, I still cannot see the pulldown menu to select the Single Express Entry but can in the same form select Multiple Express Entries from the other association. Any chance we can get your help again with this? :)

@BloodyIron
Copy link

@dimger @hissy I'm still stuck with this not working :( really would appreciate help sorting out the dashboard form issue. I haven't yet tested if the regular page forms is fixed or not as I'm still doing structural testing first.

@BloodyIron
Copy link

@mnakalay any chance we can get this baked into 8.5.5? Since it appears to be operational with the fix you mentioned in the other issue I was posting in : hissy/addon_multiple_express_entry_selector#4

@aembler aembler added Enhancement:Level Of Effort:2 Enhancements requiring a moderate level of effort required. Enhancement:Quality of Life:2 Enhancements that will have a moderate to large improvement in quality of life labels Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects:Content Creators Affects those who use the UI to create or edit content. Enhancement:Level Of Effort:2 Enhancements requiring a moderate level of effort required. Enhancement:Quality of Life:2 Enhancements that will have a moderate to large improvement in quality of life Product Areas:Express Status:Available Reviewed issue, it’s real, we’d review a pull request. Type:Enhancement A need for something new.
Projects
None yet
Development

No branches or pull requests

8 participants