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

learn more… | top users | synonyms

0
votes
0answers
13 views

Drupal Rules components to load a list of node title as selector input

I am trying to setup a custom VBO action for managing a content reference, so I managed to add a new action and with 2 variable components : and one of the variable I used is list of content items ...
0
votes
1answer
9 views

Adding create, edit, delete link of referenced entity in same content type

How could we interconnect referenced entity in one content type so that we can search, create, edit, delete the referenced entity on the same content page. In drupal 7 "references_dialog" module was ...
0
votes
1answer
25 views

Find legacy id of newly created node

I have 3 non-drupal tables : items, item_actions, actions. items(id, title, body, published_at); item_actions(item_id, action_id); actions(id, name); I were able to migrate items to ...
0
votes
2answers
42 views

Get parent of an entity reference

I have an entity reference inside node. How can I retrieve the parent node? I tried with the following code, where $node is my entity reference, but it doesn't work. $entity_ids = $query ...
1
vote
1answer
25 views

Get the body of content referenced in an Entity Reference field in node

I have a content type "event" which contains an entity reference to another content type "speaker". The speaker content type contains image and body fields. If I select a speaker for my event, I am ...
1
vote
1answer
30 views

Link to other nodes

I am starting a Drupal 8 website, with five custom Node types. These Node types need a field that can link to an arbitrary number of Nodes of any type. All information that I've found online is ...
0
votes
0answers
14 views

use multi level/chain of entity reference fields to create a list of nodes using views

I have 3 content types: Outline, Chapter and notes. Chapter and Notes have 2 entity reference fields chap_outline_reference and note_outline_reference respectively referring to outline. On the ...
0
votes
2answers
17 views

Entity Reference multi value fields, filter on parent

I have two content types: Family and Members. Family content type has an entity reference field of type Member and can have unlimited values(multiple values). My question is: How to create a view that ...
4
votes
1answer
33 views

How to auto-assign a user a particular role when that user gets autocreated in a content form?

I need to auto-assign newly autocreated users from the content editing form a particular role. I created this new content-type : Music Track and created a new field - Artist for it. The Artist field ...
1
vote
1answer
45 views

How to get the first non-empty field value of a referenced entity in views?

The website has two content types: Magazine and issue. I'm using the Entity Reference module to create a magazine archive website. I have a views that list all magazines. Each magazine is with an ...
0
votes
0answers
10 views

Displaying user-specific files [closed]

Here is what I'm trying to accomplish: Admin can upload files and assign them to certain users Users should be able to view those files (only the ones that are assigned to them in their user page) ...
0
votes
0answers
43 views

Entity Reference field (mode views) fatal error (wrong field name in sql query) [closed]

I'm using Drupal 8.0.2, and this is what I'm trying to do. I have an agency content type which has a contacts field, an entity reference field. This field reference to a contact taxonomy term. The ...
0
votes
0answers
13 views

How do I alter entity reference autocomplete results [duplicate]

I have an Album content type with some fields, including a contact field, which is an Entity reference field (taxonomy). My contact taxonomy field has 3 text fields. I want to be able to add a ...
1
vote
1answer
22 views

Entity reference default value to first value

I have an entity reference field using a view to dynamically create a list based on a contextual filter from a user ID in URL. Works perfectly. Question is, how can I default the value to the first ...
0
votes
2answers
18 views

Does having too many cck fields negatively affect site speed and performance?

I building a site that could potentially utilize 50 different content types. The most of the content types have more than 40 CCK fields, including multiple field_collections entity_reference. How can ...
6
votes
2answers
257 views

Show node IDs along with titles in Entityreference Autocomplete list

I'll like to add this functionality to the autocomplete widget in Entityreference field to show node ID next to the titles in the dropdown list. The reason behind the idea is to differentiate between ...
1
vote
1answer
27 views

Entity Average Rating

I have Player (Entity) which is referenced on a Match (Content Type). Now I'd like to Rate (from 0 to 10) the player for every match and get the average rating, can someone point me to the right ...
1
vote
0answers
14 views

Conditional Fields with multiple conditions

I am using Conditional Fields module. I need some guidance when setting dependencies for multiple fields (accepting unlimited values). Here is the situation: In my entity form I have two fields: ...
0
votes
1answer
14 views

How to make an custom content entity can be refered like user in Drupal 8?

Follow project examples, I have created a content entity. But how can make it can be attached into another entity as a reference field like user in drupal 8? Thanks in advance.
0
votes
0answers
10 views

Drupal Field Api Form widgets for Entity Properties in Custom Drupal Entities edit forms

Is it possible to use Field Api form Widgets in Custom Entities submit forms? There are times when an Entity Form or any other custom entities has a lot of fields, which surely makes a huge impact on ...
0
votes
0answers
20 views

how to add “remove” button in widgets items of entity reference view widget field?

i have a problem, i want to add a button "remove" for each items, this is the code of the module : /** * Implements hook_form_BASE_FORM_ID_alter(). */ function ...
0
votes
1answer
21 views

Restricted access on reference field type?

I've created a new field in Drupal 8, the field type is an Entity Reference and the type of item is set to Field Storage. When I edit my page, I select the node I want to reference, save and ...
1
vote
1answer
26 views

Possible to prepopulate an inline entity form multiple with a url parameter?

Is is possible to add multiple entries into an inline entity form field with url parameters I am able to populate almost any other field with the prepopulate module, just having difficulty with the ...
0
votes
2answers
22 views

Create an entity within an entity

Hopefully there is something out there to do what I want. I imagine my terminology is off hence why my googling is failing. I have two content types. Album & Track. I want to create a new ...
1
vote
1answer
25 views

How to show nodes where the user is (not) in the reference field with Views?

I have a content type with a multiple-values user entity reference field. I need a view that shows (as two pages or within one view) (a) all the nodes where the user IS referenced and (b) all the ...
0
votes
1answer
30 views

Get content types field in another content type with the entity reference relationship

I have two content types. Person and Projects. I use a entity reference for the persons name on the project node so people can select the person that is involved in the project. Now using that ...
0
votes
1answer
20 views

Referencing another node's field values

I have created a "Customer" node-type. In that, I have a multi-valued field "Addresses" for taking customer's address. I have another node-type "Order". While creating a new "Order", I want to ...
1
vote
1answer
8 views

sharing profile2 fields multisite

I have a site with 2 multi site like abc.com xyz.abc.com zxy.abc.com All sites have same drupal 7 code base. and I shared all users successfully across all portals. my setting file for sub-site ...
1
vote
1answer
28 views

Create a reference all available block content

In Drupal 7 there is Block Reference field module that can reference pretty much all available blocks, including views' blocks, system blocks, menu blocks etc. I'm just starting with Drupal 8 and ...
1
vote
0answers
20 views

How to populate filter options with another field values?

Consider the following nodes: - 'Match' which has a 'field_season' field referencing to 'season' node - 'Player' which has a 'field_seasonS' field referencing to 'season' node, allowing multiple ...
0
votes
0answers
17 views

Many to many in drupal 8

I have googled and read many posts on entity reference, taxonomy etc... Here is the problem: I have a procedures entity and sequences. Procedures can have any number of sequences. The same sequence ...
1
vote
1answer
25 views

Entity reference views with Exposed filters

I have created a content type Subjects with following fields: Student ID Subject Title Subject Code Subject teacher I have also created an entity form for accepting comments from students about ...
0
votes
2answers
29 views

Adding Pager to entity referenCED field display

I have two content types: Parent and Child I have an entity reference field (called "Link") in parent content type referencing it to child content type. I am using inline entity forms module for the ...
0
votes
0answers
26 views

Entity reference preformance : one to many or many to one

I have two content types : Cart and Cart line item. I need to link them by using entity reference. One cart may have many line item and one line item belongs to only one cart. In term of performance ...
0
votes
0answers
18 views

Displaying nodes from parent terms of user

I have a taxonomy with an organization of departments. Organisation: Dept1 Subdept1 Subdept2 Dept2 Subdept3 Subdept4 I have created a entity reference field, I use the same field with both ...
0
votes
1answer
6 views

Unable to save field collection order of collection that includes entity reference anymore

I have a Drupal 7 site using field collection and entity reference. The collection includes one entity reference and a boolean checkbox. It is used to related "news" nodes to a page. The checkbox ...
0
votes
1answer
11 views

Find target bundle(s) for a specific entityreference field

I am creating a simple administration page that shows all content types and some details about each content type field. I am getting the list of content types with node_type_get_types() I am getting ...
1
vote
1answer
35 views

Using entity reference field as filter in view [closed]

I have a content type 'Player' which has an entity reference field to the content type 'Tournament'. The entity reference field allow multiple values (a player can join several tournament). I'd like ...
0
votes
1answer
16 views

Is it possible to remove classes from a field that uses the Rendered entity format?

I have an entity reference field that is being handled by Display Suite. Even when setting the field template to expert, I can't completely strip away the default classes. The markup still has a div ...
0
votes
1answer
38 views

Views filterable by current logged in user that equals Entity Reference field?

I have nodes that have a user assigned to them as a responsible party via Entity Reference. I would like to have a View display all the nodes that the current logged in user has they that they are ...
5
votes
2answers
70 views

entityQuery with multiple conditions on taxonomy terms returns no result

In my use-case I have an entity which has two fields that reference to unique vocabularies. News: - tag (entity reference) - category (entity reference) If I query on one of those reference I get ...
0
votes
1answer
18 views

Entity reference field changes not shown in diff?

I installed the Diff module so see the changes to node revisions. Works fine, but when I change an entity reference field the diff of that field is not shown. What could I be missing? From everything ...
2
votes
1answer
36 views

Having Views searchable by users

I would like to be able to search my views by a field that is generated by an Entity Reference of users of the site. Attempt #1 - Combine Fields Filter I added this filter as exposed with the setting ...
0
votes
1answer
30 views

How to create a content type based on users with entities?

I want to create a content type that I can add to a map view based on nodes. I am using the GMap and Location modules. There doesn't seem to be an obvious way to add users to view based on nodes. So, ...
0
votes
1answer
25 views

Rule to update referenced node after customer completes checkout

I'm using the Rules (7.x-2.9) and Ubercart (7.x-3.9) modules. Here's the objective: When customer completes checkout (buying content type "bid") > Update a field (field_status) on the node of the ...
1
vote
1answer
58 views

Entity Reference Field: How to filter a View entity reference

Using Drupal 8 I want to create a field that references certain Views that the user should be able to choose from when editing a node. Creating this reference is possible using the reference field ...
0
votes
3answers
38 views

How do I find “where-used” / many-to-one related entities?

A field in my Content Type A references a Content Type B. I'd like to find, in each instance of Content Type B, a list of all the As that reference it at a particular point in time. [Update]: I ...
2
votes
1answer
21 views

How to make an entity reference field an editable field in views

I have a view that displays entity references. Entity references are assigned via select list and are filtered by a seperate entity reference field. I installed the Editable Views module so that I ...
0
votes
1answer
51 views

Loop through all nodes with rules

I have a content type (called Contact List) and by using Rules module I want to check if there is a specific phone number in my nodes, I get the node id and use it in the other content type (called ...
0
votes
1answer
31 views

How to check if an article is referenced from a collection?

I have a collection content type which is just a list of EntityReferences to articles. When I am loading an article, how can I use the Entity API to check if it belongs to one or more collections? ...