Firstofall: This module is absolutely great!

In some specific cases I require a solution to select the entity reference values without a modal directly on the page. The case is for example an entity reference to a node type. The form that contains the entityreference lists these values but instead of a popup solution or a
or radios, the user shell select the item(s) by just clicking on their title / image / ...

My current idea is just to provide a custom widget that uses the radio button display of the entityreference but does not output the nodes title but a display variation of the node or specific fields... a view would be a flexible solution.

So finally I thought that your module is close to what I need, but without the popup. Is there already some work in progress related to such a functionality or do you have any ideas for me from your development? What do you think about it?

The big thing behind is a product configurator in DC with several variant fields in line items which are entity references.

Comments

bojanz’s picture

Category: Feature request » Support request
Status: Active » Fixed

7.x-1.x was the initial implementation that had the view embedded directly into the page. It was a disaster (and not for the lack of efforts) and had to be completely abandoned. If you want to embed a view with checkboxes and pagination and exposed filters, it must not be a part of the main form. It's as simple as that.

Entityreference allows you to get entity values from a view, and use that to populate a radio or select list, and you can write a custom widget that presents those results nicely. As long as it's not embedding the view itself you will be fine.

anybody’s picture

Thanks a lot!

I now created a new sandbox module. It extends the radio widget from options.module but replaces the simple node titles by a view mode rendered node.

That's a good playground for further jQuery usage and a solution without popup.

You can find the sandbox module here:
https://drupal.org/sandbox/anybody/2187791

Status: Fixed » Closed (fixed)

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