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

learn more… | top users | synonyms

0
votes
1answer
9 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
15 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
10 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
21 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
7 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
0answers
18 views

Content (Entity or node) reference that doest not update [on hold]

I am planning to start working on a project where i am looking into the following questions: -> I am looking into using content types or eck entities? But since we need revisioning on most content, i ...
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
0answers
8 views

Filling the Node of a content-type with fields of a referenced node

I have an Article Submission System on my website, so the user first has to submit his "Summary Article" (Content-type 1) then if approved by moderators, he can then submit his "Full Article" ...
0
votes
0answers
47 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
19 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
20 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
16 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
42 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
27 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
20 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
6 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
24 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
20 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
33 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
11 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
15 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
8 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
18 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
38 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
37 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
0answers
12 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
126 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 ...
0
votes
1answer
33 views

Making entities under another entitytype

Suppose, I've created -name -machine_name an entity_type myentity with its schema as: -name -machine_name Next, I want to create another entity subentity that will be grouped under myentity. ...
0
votes
0answers
13 views

Form with Site Content that Creates an Entity with User Created Content and Site Content Combined

Webform and EntityForm do not seem to have the ability to create entities. Please help me find modules that can be used to build a Planning Form that creates User Created Planning Entities for the ...
0
votes
2answers
37 views

List content referenced to another content type

I'm creating a simple site which has shows and episodes. I have created both content types and I added the entity reference field to the episode type. The episode would reference a show which it ...
0
votes
1answer
24 views

Handling circular entity references with Migrate

I am using Migrate D2D on a Drupal 6 to Drupal 7 migration right now. I have three types: type1, type2, type3. Each of the three types has a entityreference field on it, which is configured to be ...
0
votes
1answer
39 views

entity reference view in a view

I have 2 content types: location and maintenance. I would like a view that shows all the locations with a search box at the top so the user can search the right location; when users click on a ...
0
votes
1answer
32 views

How to embed and render an entityform

I have an entityform called 'foia_generator' and I'm trying to embed it as a contact form on a page (the tutorial I used is for embedding entityforms in blocks) ... hence my problem... function ...
0
votes
1answer
24 views

Views Exposed Filter Sort on Entity based on Term Reference Field from Entity Reference Relationship

I've been playing around with Views exposed filters on an entity. I have so far been able to create a relationship to another entity through an Entity Reference, and exposed the fields belonging to ...
0
votes
0answers
4 views

Entity Reference View - selected results view is too limited

When I am using the Entity Reference View module to select nodes from a modal window list, once the View modal window is closed only the Titles of the selected nodes (via entity_label) show up. Is ...
0
votes
0answers
11 views

Different Entity Reference List for different Roles

I have two user roles like: content creator admin And an Entity Reference Field that: Should only contain a list of the authors nodes (for role content creators) -> I solved this with an entity ...
0
votes
1answer
22 views

Get node path for Entity Referenced in Views

I have two Content Types: Product and Offer. Offer has a Entity Reference field to Product I'm making a view with Offers, and I want to get the Product URL in this View. I was trying with Relations ...
0
votes
3answers
29 views

Referencing other nodes created by the same author

I have a site where members can sign up and post an article (standard content type) which I'll call STYLE A. I now need to allow the members to create a different article (another content type) which ...
1
vote
1answer
65 views

Passing object in routing.yml

I have an entity and when I try to pass the whole entity object, only the name is passed through the routing. Here is the relevant code in routing.yml: mymodule.myentity_info: path: ...
1
vote
1answer
24 views

Access denied while deleting an entity

This is my Config entity: * @ConfigEntityType( * id = "myentity", * label = @Translation("My Entity"), * controllers = { * "storage" = "Drupal\Core\Config\Entity\ConfigEntityStorage", ...
0
votes
1answer
19 views

Get entities that share the Entity Reference field

Let's say that I have two content types: Article title body field_ref_term Page title body field_ref_term Those two content types are sharing the same field: "field_ref_term" wich is a ...
0
votes
1answer
26 views

How to add new reference in entity reference field in node edit form keeping old references intact and hidden?

In my project, there is a content type 'song' containing an entity reference field to reference content type 'playlist'. More than one user can edit a 'song' to add it to their own 'playlist's. Now, ...
0
votes
1answer
26 views

EntityListBuilder only shows the last Entity that was added

I've build up an Entity for my module. The problem is that the EntityListBuilder doesn't show all the entities that I've added. Only the last entity that I added shows up. Here is the drupal sandbox ...
1
vote
2answers
40 views

display the entities that are referencing the current entity with views

I have a content type "reservation" and another "room" this is a simple booking app that Im making from stracht "just for learning purposes" Im using entity reference for make the reservations, so I ...
7
votes
3answers
234 views

Field Collection vs Entity Reference

How is field collection an advantage? You can do the same thing with a new content type pointing to the parent with an Entity Reference. Maybe someone can break down some situations where each one ...
0
votes
1answer
37 views

Checking if a machine_name exists or not

My EntityForm has a field where '#machine_name' => array( 'exists' => array($this, 'load'), To check the validation of this, I wanted to know about writing the function load() in my ...
1
vote
1answer
39 views

Loop trough a list of referenced nodes, “entity_metadata_wrapper()” style

I have a Template node that holds an Entity Reference multivalues field to a series of other nodes, all referenced nodes of the same type. The referenced nodes have a text field which value I need to ...
0
votes
1answer
31 views

views with multiple contextual filters - should return data only when both or any one filter is present

Views of content is having two contextual filter. For some reason node object is available to views so it is passing through url's 7th argument. 1.Content: Has taxonomy term ID Configuration: Php ...