This is wonderful module and is working great.
What I would like to see is the ability to modify what is displaying in left column where selected items are located. Correct me if I'm wrong but in latest version I cannot differentiate view of items in left and right column.

The idea is that I would like to have there only titles of selected items whereas in the view itself, image, category, etc. I'm not any views expert (yet!) so I'm wondering what is needed to make it happen?

Comments

bojanz’s picture

The current code makes that hard to accomplish, since it uses entity_view() with the same view mode for both sides.

The fastest way to solve this would probably be a patch that:
1) Instead of adding one "Entityreference View Widget" entity view mode adds two:
"Entityreference View Widget Selected" and "Entityreference View Widget Selector" (or something like that). This is a change in entityreference_view_widget_entity_info_alter() I think.
2) Changes the view and the entity_view() in code to use the correct view modes.
Then just configure the view modes differently.

mrfelton’s picture

Im my use case, we dont want the left column at all. Can it be made optional?

bojanz’s picture

Patches are welcome.

davidseth’s picture

I have created a new module that allows for much more flexibility in creating the view. You can use the table view layout and add any addition fields you want. It also is much more light-weight in its implementation with less ajax calls back to Drupal.

I made my module due to a large Drupal site I was working on, the Entity Reference View Widget just wasn't scaling due to all the form processing it was doing along with every click being a big ajax call. I did base parts of my module on Entity Reference View Widget and it would be interesting to see if some of these things could be merged back into this project.

It is currently in a sandbox: http://drupal.org/sandbox/davidseth/1489176. You will have to check out the 7.x-1.x branch.

Cheers,

David

summit’s picture

This look great! Would love to see it formalized into this module David!
Greetings, Martijn

bojanz’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Fixed

This feedback was addressed in the 2.x branch, which no longer has a left column, doesn't use view modes, doesn't make ajax calls on each checkbox click.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.