The Entity reference module provides a field type that can reference arbitrary Drupal 7 entities.

learn more… | top users | synonyms

0
votes
1answer
30 views

“What links here” for Beans

I'm using an Entity Reference field (unlimited entries) and a View to include desired Beans on node pages. How can I create a view similar to node/%/backlinks which allows me to see all the nodes that ...
0
votes
0answers
6 views

Default value for entity reference inside panel

I want to use panels for a users to submit reviews for other users. The idea is to use panels and have the reviewed user in the top section of the page. Then below the add form fields for the content ...
1
vote
0answers
12 views

Adjust Entity Reference “Number of values” Based on Role

There are two roles, standard and premium. I would like the standard role to be able to select up to 10 users via the entity reference field. I would like the premium role to be able to select an ...
1
vote
0answers
10 views

How can I force a migration to not create stub nodes? [duplicate]

I have multiple migrations that rely on one another for entity reference fields. When I created the queries these migrations I made sure I was only getting the nodes I want. When an entity id is ...
0
votes
0answers
23 views

Using fields of referenced node as filters in views

I have two content types location & business. Business type has an entity reference field address which is referencing location. Now I want to use fields of location content type as filters in ...
1
vote
0answers
26 views

Views Filter nodes and show referencing nodes

I have 2 content types: HotelPack and Event The HotelPack content type has an entity reference field that references to an Event In the view I want to show all the Events and filter them by Category ...
0
votes
2answers
25 views

Views filter referenced content when end date is over

This view is the result of a given postcode. how could I hide/filter referenced content when its end date is over? The referenced content should disappear but the non referenced content should still ...
0
votes
0answers
9 views

Entity Field Query for organic group anded with entity_reference

I am trying to make an efq that matches both an entity reference and an organic group. I started with help from this post: $query = new EntityFieldQuery(); $query->entityCondition('entity_type', ...
0
votes
0answers
23 views

how do you alter queries for node/# to select entity-referenced node titles instead of just target_id?

I am using Drupal 7 Services and the generic call of services/node/#. Unfortunately that only gives me the target_id as a property of every field with type entity reference; and my interface does need ...
0
votes
0answers
7 views

Entity Reference user/s referred can't view the value in content.

I used entity reference instead user reference Field type. In entity reference i used USER to target type so that i have NODE ACCESS USER REFERENCE. in my case if the user is authenticated he cannot ...
0
votes
1answer
22 views

Using Profile 2 with Entity Reference--How to display the user name and not the “Profile Name”

I've reviewed the threads similar to this, and can't seem to find a definitive answer. I have a Content Type in Drupal 7 where I want to be able to associate multiple users to a content item. For ...
2
votes
2answers
82 views

Entity creation-form: Prepopulate all existing entity-references of a field collection

I have a content-type seasonal_prices with field-collection containing an entity reference field (referencing content-type room) and a number field; the field-collection is multi-value with unlimited ...
1
vote
0answers
19 views

How to asynchronously execute/render a view using views_embed_view in a template file?

I have the latest Drupal 7 running on a Centos OS. I have a content type named publications which is composed of lets say around 20 fields (i.e. publication title, name, doi, authors, keywords, ...
0
votes
1answer
17 views

Cascade entity reference in a content type

I have two content types parts and maintenance. Parts has 3 fields. Oven type Oven Part Parts price In maintenance i have a entity reference field with autocomplete that points to parts. So now ...
0
votes
0answers
11 views

Prepopulate a field in a Reference Dialog Box

I have 2 content types named Incident and Migrant. Both of them have fields that reference each other. My question is how to prepopulate a field in a reference dialog box while the node is being ...
4
votes
1answer
30 views

How do I create a list with the previous and next referenced entities of the one being viewed?

I have 2 content types: Books and Chapters. Books have an entity reference field that can accept unlimited values. Chapters have an entity reference field (single value) that corresponds to a book. ...
1
vote
3answers
95 views

Disable ordering in entity reference (user)

I have an entity reference of widget type = autocomplete. It's a collection of users where you can add multiple users. Now I would like to disable the ordering of the users. So you can't order the ...
0
votes
0answers
9 views

Hide views row on referenced node

I have a content type called call-to-action box, which has fields: Title, Body, Image, Link which allows the user to create some boxes which is shown in the sidebar, and links to a the page given in ...
0
votes
0answers
20 views

How to populate entity field based on a prior field in Drupal 7?

I have created content types: class result I also have users with roles "student". There are 5 classes: A, B, C , D, E, but each class has 100 users. The "result" content type has a field ...
1
vote
1answer
31 views

How can I do a cascading Entity Reference data entry or is it even possible?

I am working on a system where we want users to be able to create a Project which will be made up of one or more Project Activities, each Project Activity being constituted of several Sub-Activities. ...
0
votes
1answer
15 views

Display blocked users to anonymous

How can I display blocked users in a template file? I have an Entity Reference field that I'd like to use to show anonymous users any blocked or active users added to the Entity Reference field. Is ...
0
votes
0answers
19 views

Is it possible to get Entity Connect and Entity Reference View Widget to work together and if so how?

It seems to me this should be a fairly common problem, but I can't seem to find and answer despite looking! Here is my use case: I have two types of content: Activity and Participants. When I create ...
0
votes
0answers
12 views

Computed Code Count of Wins and Losses of other content types

New to Computed Code. I have content types of Teams. I also have content types of Games. A game is made of several fields including a home and away field. Those home and away are an entity ...
1
vote
1answer
25 views

Node edit form with entity reference - show more than just the title in the autocomplete box

I have three content types: application, organization, and organization_note. Application has an entity reference to organization and organization has an entity reference to organization note. The ...
0
votes
2answers
22 views

Create referenced node on the fly in Drupal 7?

I have a node called "house" which references another node called "room". When I create a house, i.e. go to node/add/house, there will be a block where I can choose all the rooms I've created. What I ...
1
vote
1answer
20 views

Sort Entity Reference Fields

I am trying to find a way to sort the referenced entities in a node. I have found a related question "Ordering of referenced entity" but it cannot be applied in my case for the following reasons: 1) ...
0
votes
1answer
23 views

How to make a reference on same node without recursion problem

Here is the situation. I have a content type called Product. Content Type : Product Title Body Color Product Reference (Entity Reference on content type Product) Thats mean For a specific product, ...
0
votes
0answers
20 views

geofield and leaflet maps: how to show proximity-originator on map?

My Goal: Show a hotel on a map, together with nearby restaurants. Currently, i have only a table, based on a view with the hotel's node-id as contextual filter. Now i'd like to put all that in a ...
0
votes
0answers
22 views

Enter presence and assign marks for multiple students at once

I'm building a teacher register web application with Drupal 7 for our school. I have a Chair entity, which references the Class entity and the Teacher role. The Chair entity references also a taxonomy ...
0
votes
1answer
23 views

Entity Reference - Not required to be in database

I have a content type Proposal with a entity reference field Proposed by. This is an autocomplete field that targets Users in the application. You can give in multiple users that are in the ...
0
votes
1answer
17 views

How to display a specific field instead of Title with Entity Reference

I Have two entities. **Students** Title Body **Cours** Title Body CoursRefNumber I can associate many Cours for each students. To do that, I create a Entity Reference on Cours for student. When ...
0
votes
1answer
43 views

Entity Reference on multilingual sites

I am having a problem with getting Entity Reference to behave with a multilingual Drupal 7 installation using field translation (Entity Translation). I have a node called 'Features' which has a bunch ...
0
votes
0answers
8 views

Entity Reference (-> User) : send mail when not in system

I have a content type Proposal with an Entity Reference Proposed By (target type = User). This is an autocomplete field. The user needs to type in the email adres of other users. But I would like to ...
0
votes
1answer
18 views

Content referencing the referenced content

I've been searching and cannot find a way to achieve this: display content referencing a content that is referenced by the content being displayed. It may be somewhat confusing but I'll do my best to ...
0
votes
0answers
24 views

EntityFieldQuery - Order by the number of entity reference field values, matching a given array

I have a list of nodes (group), each referencing a number of other nodes (event) using an Entity Reference. I can query the the "group" using $query->fieldCondition('field_group', 'tid', ...
0
votes
1answer
14 views

Non-directional/symmetric relation between nodes of the same content type

In a Drupal 7 website I would like to create an "is similar to" relation between nodes of the same content type. The nodes are vessels (ships) and a vessel can be similar to several others. Think of ...
0
votes
1answer
25 views

How to get the URL of the entity reference node?

I'm building a site of course video,one course includes many video clips. I have created 2 content types, one is for the Course ,and the other is for the Video. In the course content type, I set a ...
1
vote
0answers
23 views

How to use EntityFieldQuery::fieldCondition for entity reference field

Suppose, we have an entity "song", that has an entity reference field, called "authors": I added a filter for this field as a group of checkboxes: After the user submits the form with checkboxes ...
0
votes
0answers
66 views

Warning: array_flip(): Can only flip STRING and INTEGER values!

I have a custom module that hooks into a commerce extension module the function splits a payment for a product and splits it to beneficiaries who helped create the product. I use user_referance ...
0
votes
0answers
8 views

Is there a menu formatter for entity reference?

Is anyone aware of a module that will display entity reference as a menu on a given node? All of the formatters I see will just list out the referenced nodes.
0
votes
1answer
9 views

How to add data to a message type custom field that's inherited by all message instances?

I'm using the message module, and I have some message types. Each message type needs to have a node reference field on it whose value would not change for the entire message type. But different values ...
0
votes
1answer
92 views

URL variable not respected when ajax call happens in user registration form

There are some fields (some required, some not) I need to (conditionally) hide in the user creation form: function hook_form_alter(&$form, &$form_state, $form_id){ switch($form_id) { ...
0
votes
1answer
28 views

Add multiple co-authors while creating node

I have a content type proposal. Now I would like to have multiple co-authors of the node. I want to give the author the opportunity to add users like this: The users have to be entity references. I ...
0
votes
1answer
36 views

Autocomplete entity reference - Required to select entity

I'm having problems with a required field that is an entity reference. This is my case: I have a content type advertisement that has an entity reference product, what is an autocomplete widget. The ...
1
vote
1answer
24 views

Rules: Do action on the field of referenced node

I have an "Authors" Content-type, that users can add to their "Article" node while adding a new content as Co-Authors. Note that it's a seperate content-type not users. in "Authors" content-type I ...
0
votes
2answers
53 views

D7 - Entity Reference and Views to allow a nested structure

I'm trying to implement a nested structure in such a way as to get a table (within a view?) similar to this: Parent Child Grandchild Age Sex John ...
0
votes
2answers
41 views

dynamic block title for block-view of referencing nodes

I have a block listing nodes that all reference the same 'parent node' (etity reference). I would love to see the title of the referenced node as a title of that block. Example: on a record label ...
0
votes
1answer
32 views

Show relationship summary using Entity Reference

First question, hope I can get some answers. I have this information schema: Books: Title and Author (Entity Reference field to Books content type) Author: Name and Books (Entity Reference field to ...
0
votes
0answers
13 views

Group Audience field in Group Content does not show any values other than None

I am a OG newbie and followed examples and created a new content type called "Team" and a new content type called "Item" and associated it as a Group Content Type for "Team". I created a new "Team" ...
0
votes
0answers
30 views

Views exposed filter: if relationship exists

I have a view with relationships between two entity types. My view is displaying comments. I have also custom entity, which has field reference on comments. How can I make exposed filter, so user can ...