Entity Browser

A very useful module, for example, to use in reference fields. Complex because of the configuration.

I will explain this module with a case. We want to create a form that allows visitors to indicate products from which they want more information. They do this on the basis of a view used by the Entity Browser. In this view you can also filter, which solves the problem that occurs in many forums. With Entity Reference you can not (for the time being) filter.

This is the view that selects products when clicking. These are then ready to submit an application after filling in an e-mail address and name.

Screen001395.png

How are you doing this?

First you create the Entity Browser view. Make sure that the Entity Browser bulk select field is included.

Screen001391.png

The result

Screen001392.png

Got to the Entity Browser configuration.

 

Screen001383.png

We choose a popup window
Screen001384.png

Configure


Screen001385.png

 


Screen001386.png

We choose the view mode.

Screen001399.png

Choose the view you made before

Screen001400.png

If you choose 'Select automatically' the checkmarks will disappear and the product will be chosen by simply clicking.


Screen001387.png

The content type has a reference field
Screen001388.png

In the form you set this
Screen001389.png

Configure


Screen001390.png

Now one can use the Entity Browser


Screen001394.png

You see that with clicks there is a script running to add to the selection
Screen001395.png
Screen001396.png

The selected items appear at the bottom. You still have to click on Use Selected.
Screen001397.png

So .. the items are ready in the reference field.


Screen001398.png