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

learn more… | top users | synonyms

1
vote
0answers
15 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
9 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
9 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
21 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
61 views
+50

Disable ordering in entity reference

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
19 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
27 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
14 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
15 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
11 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
21 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
21 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
19 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
17 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
11 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
20 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
36 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
17 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
20 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
13 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
24 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
17 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
37 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
8 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
88 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
26 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
29 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
21 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
51 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
36 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
28 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
11 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
27 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 ...
0
votes
0answers
9 views

d7, large Taxonomy, entity reference, php error

when I like to add a content type "add/CCC" I get an PHP Error "Fatal error: Allowed memory size of 125MB". CCC includes an Entity Reference to Content Type AAA. AAA is large (10.000 Elements, ...
1
vote
1answer
36 views

Remote Entity Create with Node Reference

I am writing an Android app which is creating Drupal nodes remotely. I am creating these nodes via a straight php form. But now I need to create Nodes which are node_references of the main node. ...
0
votes
1answer
34 views

How to print specific fields in a view?

I have 3 content types: Country Destination Attraction Each attraction has an entity reference poiting to Destination. Each destination has an entity reference poiting to Country. I need to ...
0
votes
0answers
12 views

Newsletter with Articles using Entity Reference and Simplenews: Pictures wrong

I have a newsletter which has a Entity Reference field sor Articles. It should send out some Articles selected. This works in principle, but the Problem is: All img src attributes are just ...
0
votes
0answers
21 views

Field of Type Entity Reference with Select List Widget Shows Choices for Admin, Empty for All Other Users

I've got a content type "A" with a field of type Entity Reference to another content type "B". It's intended to display a select list of the items in "B" and allow the user to select one. As long as ...
0
votes
0answers
12 views

terms selected using entity reference and context module

Possibly a bug while communicating term selected by entity reference to context module with condition taxonomy. I created a view of type term, display: entity reference,fields:taxonomy term name Then ...
0
votes
0answers
22 views

entity reference chain

ill try to be as clear as i can with the problem. I have the following scenario: A comic page content type which is basically an image and has an entity reference field to a content type Chapter. The ...
0
votes
2answers
59 views

Autocomplete on multiple fields Entity Reference

This is my case: I have a content type advertisement with some fields and an entity reference of content type product. The widget type of the entity reference is autocomplete. These are my settings ...
0
votes
1answer
44 views

What is the difference between Referenced Entity and Referencing entity in views

I just wanted to know what is major difference between Entity Reference: Referenced Entity A bridge to the Content entity that is referenced via field_FIELD_NAME AND Entity Reference: ...
0
votes
1answer
25 views

How to alter a form of content-type to prepopulate FieldCollection of EntityReference fields?

I have three content types : Classroom (some fields) Student (some fields and one EntityReference to Classroom) KMDone (some fields and a FieldCollection) KMDone is a content type which contains : ...
2
votes
2answers
129 views

How to pass an extra argument to an entity form?

Suppose, I've two entities: entityA entityB A user creates an entityA and has the option of creating multiple types of entityB referenced from a single entityA. For example, a parent-child ...
0
votes
1answer
46 views

Creating a list of node-options in different node

I am looking for a way to list nodes in a different node. Not sure how to explain this, so I will do it with an example. Let's say I'm for example making a website for a Tennis tournament, this is ...