Is it possible to change/add entity type filter to be able to choose "Is one of" instead of "Is equal to"? The reason for doing this is being able to choose between entity types on exposed filter.

Comments

chx’s picture

Status: Active » Closed (works as designed)

Well, EFQ itself only supports specifying a single entity_type as http://api.drupal.org/api/drupal/includes!entity.inc/function/EntityFiel... says

To specify the entity type, pass in 'entity_type' for $name, the type as a string for $value, and no $operator (it's disregarded).

however I am intrigued on why do you want the user to be able to pick between entity types.

perarnet’s picture

Hmm, I'm not sure if I remember the use case actually. :-) I think it was regarding making an article system with referenced entities showing up in a aside area, where I would use draggable views to change the weight of different entity types (files and nodes for example) inside the aside area. Where the exposed filter comes into play, I don't remember though.