Closed (fixed)
Project:
Entity Reference View Widget
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2011 at 12:41 UTC
Updated:
31 Jan 2014 at 13:20 UTC
Jump to comment: Most recent
Comments
Comment #1
bojanz commentedThe 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.
Comment #2
mrfelton commentedIm my use case, we dont want the left column at all. Can it be made optional?
Comment #3
bojanz commentedPatches are welcome.
Comment #4
davidseth commentedI 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
Comment #5
summit commentedThis look great! Would love to see it formalized into this module David!
Greetings, Martijn
Comment #6
bojanz commentedThis 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.