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

learn more… | top users | synonyms

0
votes
0answers
2 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
3 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
12 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
23 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
33 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
7 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
115 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
27 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
12 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
30 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
15 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
25 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
18 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
13 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
3 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
17 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
28 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
59 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
19 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
16 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
22 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
35 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
198 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
30 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
33 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
30 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 ...
1
vote
1answer
58 views

Using Entity Reference field, get the parent NID in referenced entity (node)

I have a node that holds an entity reference field (multi value) to other nodes, all the referenced nodes of the same type. In the referenced nodes I have a computed field that do some calculations. ...
0
votes
0answers
23 views

Multiple views for the same content type

I have a content type “foo” with and Entity Reference to himself. It has 3 different views: “Default”, “Teaser”, “Custom View” (code created). (The teaser and the custom doesn’t display the reference ...
0
votes
0answers
7 views

Backreference an entity programmatically and with views

I have a content type group (organic group) and another sub-group (also organic group) the sub-group content type has an entity reference field "grups_audience" that can reference its parent group ...
0
votes
1answer
31 views

Loop trough a list of referenced nodes in order to get a specific field value

I am using Computed Field to get some values; 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 ...
0
votes
1answer
41 views

Change list of values dynamically with a click

I realize my request is a bit complex, I hope someone can answer. I have a drupal 7 clean installation. I have a node type called Whole and another one called Piece. A Whole contains one to many ...
0
votes
0answers
7 views

Performance of attached entities with EVA vs normal display?

I have an article that contains a multi-value entity reference field that links to bios, which are another content type. Currently, I'm displaying these bios by using the "rendered entity" formatter ...
0
votes
0answers
24 views

Get the weight of the Entity referenced item to display in a CSS class

I am using the entity reference cck field to add related nodes (using teaser view mode) to a piece of content for example "Top 10 cities", we'll write a small paragraph using the body field and then ...
0
votes
1answer
19 views

Filling an Entity Reference programatically

I am creating a node programatically and one of the fields in the node is an entity reference field referencing a user. I am using the guide from https://www.drupal.org/node/1388922 and the general ...
0
votes
1answer
44 views

Use multiple URL arguments to prepopulate multiple entity reference fields

I have multiple nodes of type 'schools' I also have a contact form that i'd like to provide on a per school basis. I.e. The user views a school page and can use an entityform embedded or linked to ...
0
votes
1answer
22 views

Providing a default value for an Entity Reference Field using Views Bulk Operations

I have a content type called 'Schools' and a CSV spreadsheet that has columns for information such as School Name, Location, Telephone etc... Using Feeds I can import the information on the 111 ...
0
votes
0answers
30 views

D7/Views3: Filter “Parent Nodes” by “Child: Author ID” while still displaying Parent Nodes that don't have Children

I'm able to successfully create a view of parent nodes with referenced children that is filtered by "Child: Author ID" through a "Referencing entity" relationship. My question is would it possible to ...
0
votes
2answers
33 views

Handling One-to-Many relationship view?

I am trying to learn Drupal, and getting stuck every hour. I wish someone could walk me through this. I am trying to create a Employee-Company relationship. I have created a Company Content Type with ...
0
votes
1answer
39 views

Allow user to use entity reference to nodes they own?

I have a Doodad content type that has a couple of Entity Reference fields, for example, parentDoodad. Those fields point to other Doodad nodes. When I'm logged in as an Admin, I'm able to use the ...
0
votes
0answers
17 views

Can comments entity be used as alternative to entityform

With no offense to the entityform module, I am facing some issues when entityform is attached to node. Few of them are node related tokens are not available/accessible to entityform module ...
0
votes
0answers
16 views

Entity Reference Autocomplete on 2 fields entity

Now I have a content type offer with some fields AND an entity reference of the content type product. The entity reference is an autocomplete widget. When you create an offer, you type in the title ...
0
votes
1answer
52 views

Node relationships, backwards or forward?

I know node references are not as popular as entity references are, but I'm curious on backwards and forward relationships. This is a use case I see someone doing. Job < -- Job Application 2 ...
0
votes
2answers
30 views

Best way to create a property of an association in Drupal 7?

I have a node Theater, and a node Movie, and a Theater can have X movies and for each movie at that specific theater there are Y showtimes. How can I set up the property "showtimes" of the association ...
4
votes
2answers
78 views

How can I design a relationship between two types of users in Drupal-7?

I have two types of users in drupal-7: children users and parents users. How can I design a relationship between these types of users? Also How can I maintain this relationship in the code? i.e. ...
0
votes
0answers
10 views

Copying taxonomy references between different content types

I've got a site on D7 that deals with events, it brings in content from a bunch of different sources using Feeds to import using RSS, iCal. It's set up with 3 different content types; Regular Events, ...
0
votes
0answers
8 views

Page with reference subpages and reference menu

I have a task on my hand of wich I can't seem to think of a proper solution to. I have a site with a content type called "Product" which is a page with an overview of a product. It has a body field ...
0
votes
1answer
22 views

How do I use add the image field Product entity in to my view?

I'm using Drupal 7.28, Views 7.x-3.8 and Commerce 7.x-1.9. I've created lots of products in the Products section and I've also created some product displays. For example, I have created a round oak ...
0
votes
0answers
14 views

Views and Entity Reference Issue

I've installed "Entity Reference" and used it in a node type called "Videotutorials". It's part of a another node type called "Courses". I mean, it has a field where I can select what type of Curse ...