use "chosen" in tpl editor #3587

Closed
Toflar opened this Issue Nov 29, 2011 · 16 comments

Comments

Projects
None yet
6 participants
Member

Toflar commented Nov 29, 2011

Hi Leo

I'm going to add a patch to this ticket which is not fully working (somehow the box gets displayed behind the submit buttons) but it should show you how easily this could be implemented ;)

If you haven't heard of "chosen", then please see here: http://harvesthq.github.com/chosen/

I feel like finding the correct template is really annoying at the moment. Especially if you know the name of it. You have to search the whole list and it's pretty tedious :)

I have attached a screenshot of how it could look like =) neat, isn't it? ;-)

Chosen has been ported to mootools: https://github.com/julesjanssen/chosen
I'm not sure whether we need the "Locale" implementation.

Would really make life easier - hope I could tease you a little ;-)

Download the attachments

--- Originally created on October 30th, 2011, at 04:13pm (ID 3587)

@ghost ghost assigned leofeyer Nov 29, 2011

Member

aschempp commented Nov 29, 2011

If you're interested, I do have a chosen widget available. I can send it to you after my holidays...

--- Originally created on October 31st, 2011, at 06:12am

Collaborator

issue-bot commented Nov 29, 2011

I have looked on chosen and must say: I fully agree with you, that it would be nice, if it is part of Core, because most user don't know, that you can by fast typing already "search" in a combobox (but this don't work, if there is an whitespace in keyword). So I believe, it could improve speed of workflow of a lot of users...

--- Originally created by SunBlack on October 31st, 2011, at 10:42am

@leo feyer: please tell me if you integrate chosen into the core. So that i can remove my chosen extension.

--- Originally created on October 31st, 2011, at 03:29pm

Owner

leofeyer commented Nov 29, 2011

I will definitely look into it.

--- Originally created on October 31st, 2011, at 09:06pm

Member

Toflar commented Nov 29, 2011

Just a general question: Is there anything to be said against using chosen in general? For all dropdowns? I mean, it doesn't break existing functionality at all - it just makes it better? Leo, couldn't you just extend the existing select widget?

--- Originally created on October 31st, 2011, at 09:10pm

Owner

leofeyer commented Nov 29, 2011

That's what I thought of.

--- Originally created on October 31st, 2011, at 09:23pm

Member

aschempp commented Nov 29, 2011

Sorry but that is not a good idea. Especially for multiselects where you intend to use many, it is very ugly. I tried to use it for the country option in Isotope eCommerce. There is no select-all option, and if you have 100 options selected the field will become very high (because there is no scrollbar).

--- Originally created on November 1st, 2011, at 12:04pm

fbender commented Nov 29, 2011

I guess we can change that ;-).

Either way, this should be at least a DCA option (enabled by default?) and enabled for most Core fields.

--- Originally created on November 1st, 2011, at 01:09pm

Owner

leofeyer commented Nov 29, 2011

I tried to use it for the country option in Isotope eCommerce

What are you using instead now? A checkbox list?

--- Originally created on November 1st, 2011, at 03:47pm

Member

aschempp commented Nov 29, 2011

No, as before, the regular multiselect with a size of 10. If you want to add it to the core, I suggest to just add another widget called "chosen" to the available list. As said before, I can provide a working widget including some problem fixes I ran into.

--- Originally created on November 1st, 2011, at 04:27pm

Owner

leofeyer commented Nov 29, 2011

As said before, I can provide a working widget including some problem fixes I ran into

That would be great :)

--- Originally created on November 1st, 2011, at 06:43pm

Owner

leofeyer commented Nov 29, 2011

if you have 100 options selected the field will become very high

It is fairly easy to work around this one :)

--- Originally created on November 1st, 2011, at 06:50pm

Owner

leofeyer commented Nov 29, 2011

Part one implemented in 6fda7ac (the template drop-down menu).

--- Originally created on November 2nd, 2011, at 08:27pm

Owner

leofeyer commented Nov 29, 2011

Most huge select menus are now "chosen" (see d01ad65).

--- Originally created on November 3rd, 2011, at 09:19pm

Owner

leofeyer commented Nov 29, 2011

Completed in 21df2ac.

--- Originally created on November 4th, 2011, at 02:12pm

Owner

leofeyer commented Nov 29, 2011

--- Originally completed on November 4th, 2011, at 02:12pm

@leofeyer leofeyer closed this Nov 29, 2011

leofeyer added a commit that referenced this issue Nov 30, 2011

leofeyer added a commit that referenced this issue Nov 30, 2011

leofeyer added a commit that referenced this issue Oct 31, 2014

leofeyer added a commit that referenced this issue Oct 31, 2014

leofeyer added a commit that referenced this issue Oct 31, 2014

leofeyer added a commit that referenced this issue Oct 31, 2014

leofeyer added a commit that referenced this issue Oct 31, 2014

leofeyer added a commit that referenced this issue Mar 27, 2015

leofeyer added a commit that referenced this issue Mar 27, 2015

leofeyer added a commit that referenced this issue Mar 27, 2015

leofeyer added a commit that referenced this issue Mar 27, 2015

leofeyer added a commit that referenced this issue Mar 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment