jensimmons / thewebahead

A space for tickets about the forthcoming website for The Web Ahead.
9 stars 0 forks source link

Add Chosen on node form select/multiselect fields? #19

Closed sffitzpatrick closed 10 years ago

sffitzpatrick commented 10 years ago

I think Chosen would be a nice enhancement for the long select fields in the admin node forms. For example, the Episode reference on the Sponsor add/edit form. Chosen will make it a lot easier to find episodes AND see what's already selected.

I've done this via form_alter functions but it looks like there's a module :) https://www.drupal.org/project/chosen.

jensimmons commented 10 years ago

Great idea. Yes.

I got this half installed. But it's not working. (Ah, Drupal).

Module installed & on. Should work automatically. Config at http://dev-webahead.gotpantheon.com/admin/config/user-interface/chosen

Library in the repo. at sites/libraries/chosen/chosen/ See: page tpl php - the web ahead 2014-08-12 17-40-31 2014-08-12 17-40-33 as per the instructions in their video. I also briefly tried it at sites/libraries/chosen/\ which didn't work either.

The Chosen module used to have a jQuery Update dependency. Not anymore. jQuery update is off. That should be fine.

Caches cleared multiple times. Nada. I've edited the content types, changing the widgets on some of these fields. Nada.

sffitzpatrick commented 10 years ago

Huh, it looks like the module is trying but failing to load the plugin at http://dev-webahead.gotpantheon.com/sites/all/libraries/chosen/chosen.jquery.min.js

screen shot 2014-08-12 at 4 52 32 pm

But you said you tried that location already!? Is your libraries directory in "all" or directly under "sites"? From the screenshot it looks like libraries in in the right place but you said you tried "sites/libraries/chosen/*"

I'd be happy to hack on that a bit if I have access to the code (do i?)

jensimmons commented 10 years ago

Looks like it does want it to be up one level. Not surprising, that's not what their video said... might have changed. Let me try that now.

You don't have access to code. Do you have a Pantheon account? What's your username?

jensimmons commented 10 years ago

There we go! Works now.

I had tried it a level up, but I also think I perhaps had the wrong files then... meh. Sorry I didn't figure this out earlier.

This is a great module.