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

learn more… | top users | synonyms

0
votes
0answers
10 views

Can entities flag entities just like users do?

This is more conceptual than request for instructions: is there a way for an entity to flag entities, not as a global flag but flagged for just that one entity? Users of course can do this sort of ...
0
votes
0answers
17 views

View of users sort by number of orders referenced to each user - drupal 7

I have added an entity reference field to my shipping address so as to use the Entity Reference Count module to count the number of orders referenced to each user on the site (that is, the number of ...
1
vote
0answers
16 views

How do you add the NID as a view filter criteria and not contextual filter?

I'm using an Entity Reference field, displayed as a View, to select an "Work Entry" node type. The Work Entry nodes are selected when creating/editing an "Invoice" content type. So the user will be ...
0
votes
2answers
19 views

Views 3: filter nodes such that an entity reference on the node corresponds to the current user

I'm creating an approval/review workflow with notifications. The content type we're reviewing is called a "Scholarship", and the first review is being carried out by an Intern (interns are a role in ...
0
votes
1answer
23 views

Views with logged user contextual filter stop working after adding relationship

I have two content types in a project I am working right now. Content type A has a field that hold the user ID of the user that "reserved" a node from that content type. Once the user has reserved a ...
-2
votes
2answers
27 views

Cache flushing doesn't help after manual deletion of entity references

I have a little function that deletes specific entity references directly from database. Because of fact that it bypass the whole entity_load / entity_save system it flushes cache of all entities it ...
1
vote
1answer
23 views

Form is not rebuilding on “Add another item” in unlimited value entity reference field

In a content type I have a field of type 'entity reference', 'auto complete' widget with unlimited values. The whole idea was to give user an option to add referenced node items but only once, Hence ...
1
vote
1answer
20 views

Paginate results of entity reference widget type

I have entity reference field with checkboxes/radio as the widget type. The issue is the I have hundreds of nodes and this results in a having a big list. Is there a way to paginate the results or ...
1
vote
2answers
15 views

Limit entity reference widget to unique references

I have a entity-reference field that enables multiple-references (cardinality is set to -1). The problem is that it allows multiple 'same' references => it is possible to save two references to one ...
0
votes
0answers
34 views

Entity reference - hide some references in multiple-reference field edit widget

I have a node (group) with an entity reference field that is used to link it to other nodes (stations). The relationship between them is 1:N (one group : many stations). The problem is that I need to ...
0
votes
1answer
19 views

Get the value of a field of the taxonomy term referenced with an Entity Reference field

I have a taxonomy vocabulary "Partners", with boolean field field_1. When I create a user, I attach to it a term from the vocabulary "Partners" with an Entity Reference field. Is there a way to get ...
0
votes
0answers
25 views

Custom widget type for entity reference

I have an entityreference where I would like to change the widget that is shown. Rather than just showing a select list. I would like to show a select list with some optgroup added as the list is ...
0
votes
0answers
20 views

Let users add related content on frontend

I need to allow frontend users to add entity references to existing related content similar to what Inline Entity Form module does on the backend. I know, that I could probably use Panels module to ...
0
votes
0answers
15 views

How to access a field of a referenced entity in a computed field?

I would like to access a field of a referenced entity in a computed field. For example: The content type A contains an entity reference field referencing the content type B; B has a "price" field. A ...
0
votes
0answers
7 views

Rules to grab field content from referancee entity

I been trying to figure this out for two days now with no luck and any searches online gave no results based around the same issue so this is really my last hope. I have a content type of VENUE and ...
0
votes
0answers
22 views

Programmatically create user reference field

I want to add a user reference field in taxonomy term. I create field and it's instance: $field = ['field_name' => 'mymodule_employee', 'label' => t('Employee'), 'type' => ...
0
votes
1answer
21 views

How to filter single field in a view

I am running Drupal 7 with the latest version of the Views module. I have a content type called "School," which has an entity reference field for "classroom." The "classroom" content type has a radio ...
0
votes
0answers
26 views

Hide Title for Rendered Entity views

In display modes I set to hidden all Title fields, but Views still gives h2 title.
1
vote
2answers
32 views

Use views to prepopulate fields

I have a site that generates letters to be sent to schools. The visitor arrives at the front page where they are presented with a map (leaflet map) with all the local schools marked on it. They then ...
0
votes
1answer
38 views

How to delete a value from a multi-value entity reference field with EntityMetadataWrapper

I have multiple values in an entity reference field. I want to delete one of those values, but ::clear doesn't seem to work. I basically just want to do an unset, like: ...
1
vote
1answer
15 views

How to get an array of values of node ids from entity reference field with EntityMetadataWrappers

I'm using a EntityMetadataWrapper on a profile2 entity. One of the fields is a multi-value entity reference field to nodes. I want to simple get the node ids as an array, so I can do a quick ...
0
votes
3answers
38 views

Renaming a Content Type Machine Name

I have a really annoying typo right through my Drupal install (db table names, modules...you name it it's right through). Ideally I would like to fix the typo and not recreate the content type/modules ...
0
votes
0answers
30 views

This Entity Reference View Isn't Working Right

Here's my situation: I have a node type for "School" and node type for "Classroom." In the School node type, I have an Entity Reference field for "Classroom," and vice-versa (i.e. I have a "School" ...
0
votes
0answers
16 views

How to extend entityreference field by another custom field?

I want to add another field, which needs to be accessible by views (for display and ordering), to the entityreference table field_data_field_FIELDNAME. Structure of that table is: entity_type ...
0
votes
2answers
17 views

Adding a linked table to user profile

I have a business case need to add a linked content type or table to a user's profile. Basically, when they register an account, we want to know the make, model, and year of any recreational vehicles ...
0
votes
3answers
71 views

Can I use the prepopulate module on an entityreference field in an entityform?

It may be wishful dreaming, but it would be sweet if I could pull this off. I've been banging my head against it for a while now. Has anyone done this before?
0
votes
0answers
16 views

Drupal EVA View with Taxonomy

I have an EVA field showing hotels that are related to a certain tour and need to have the functionality where the tour shows the relevant hotels from the relevant taxonomy terms. I can only do it so ...
0
votes
1answer
41 views

Add date field to drupal entity registration

I created an event with a fieldset of dates. You're able to register to this event, but I would like to add an extra field with one of the dates of the event. How can this be done (with the entity ...
0
votes
1answer
23 views

Display content reference with another content

I just starting using Drupal and I have few question. Currently I have two Content Types: Project and Task. Project's field is: Project title Body Date Task's field is: Task title Body ...
0
votes
0answers
15 views

EVA multivalue entity reference

I am attempting to get a list of Employees to attach to a Company and vice versa using a multivalued entity reference field on the employee however looking at the employee I get all the referenced ...
1
vote
2answers
54 views

load commerce coupon

I want to load coupons that have commerce_discount_reference=4. I find that can load them by commerce_coupon_load_multiple but I dont know how I add condition commerce_discout_reference=4. maybe ...
0
votes
0answers
32 views

How to force display of entity reference field details in node view mode

I have a parent node with an entity reference field to reference user, but all that displays in add/edit or view modes is the referenced field. I can use inline_entity_form for adding, but it doesn't ...
0
votes
1answer
74 views

Custom text output for entity reference fields

In my content type I have an entity reference field. With this field editors can create internal links effordlessly with the autocomplete function. What I want to achieve is that editors can now ...
1
vote
3answers
56 views

Custom view mode for entity references - getting rid of title

I have an entityreference field that displays content in a custom view mode. It works great. The only problem is that in addition to the fields that I placed in my custom view mode, it also displays ...
0
votes
0answers
20 views

How to store additional data against a user in an entity reference?

Hi I am using Drupal 7 and have a content type setup to store a list of users using entity reference. I need to expand the information kept on the users. So for example after creating the node with ...
0
votes
0answers
7 views

Group Member not seeing full add content screen

In doing some testing today, I realized that the "create content" links in my panels for my groups are not working properly for regular members. At first, it seemed to be an issue with the ...
0
votes
0answers
13 views

Feeds with multiple Entity References per node?

I have been racking my brains on how I can import a massive database I have collected into my Drupal website. I have collected the below data for over 3000 players so manually uploading is not an ...
0
votes
1answer
39 views

custom entityreference widget not saving field

I am trying to create a custom widget for the entity reference field type which will be a hidden field with its value set to the current page's node id. This is my code: function ...
0
votes
0answers
62 views

fullcalendar drupal: Is there a way to use entities as column headers?

I've been scouring the internet and haven't found anything on this topic. I've posted an issue on the Drupal project page, but haven't received any answers there yet. Anyway, here is my question, ...
0
votes
0answers
29 views

Show image in a entity reference field with Chosen when the list comes from views

I have an entity reference field that list user of the website. That list is provided by a view. It seems that only text can be display in the selection list provided by Chosen. I would like to get ...
0
votes
0answers
19 views

Create a content type with an embedded view and entity references as the view filters

I have a website that keeps track of job tickets with the usual information plus the cost of each job. What I need is a feature that will create an invoice for a specific customer (customers are ...
0
votes
0answers
16 views

User reference in Drupal Content Body

I am Drupal newbie and I 'm trying to develop a feature to refer users in my Drupal Blog Entry content. Please see screenshot with example: http://prntscr.com/2p5dtv Browsing for solutions, I found ...
0
votes
0answers
35 views

Drupal 7 webform/entityforms with node reference

I have a form on a node, that displays 2 fields that are entity reference fields from the current node page. It shows the correct info on the label of the fields, but as soon as you save the form, it ...
3
votes
1answer
35 views

What is difference in the referencing entity options while adding a relationship in a views?

I have entity reference field field_patient_reference. While adding a relationship in views I get two options : What is the difference between the two options below: Entity Reference: ...
0
votes
1answer
47 views

How can I reference two field without nid or uid?

I have two content types: 1.- Equipment and 2.- Configuration The First CT has the following fields: Title : is equipment id with autocomplete module serial and hide for not capture. model : Text ...
0
votes
0answers
88 views

How to programmatically create an entity-reference when submitting a form?

I'm working with the entity reference module. I have two node types (Type A) and (Type B). The basic concept is to let users reference multiple nodes (type a) into another node (type b). So I ...
0
votes
2answers
52 views

How to access field values from an entity reference field in a custom module?

I'm making a custom payment module for Commerce that references a Credit Card entity. I have the entity reference form field in there and working but I cannot pass on the selected Credit Card entity ...
0
votes
0answers
26 views

Referenced entity is output each time instead of once

I use out-of-the-box articles content type to which a I added en entity reference field so I can assign multiple users to that article. I used this reference in order to be able to display multiple ...
0
votes
1answer
43 views

EntityDrupalWrapper->value() causes infinite recursion on user login?

I have a few instances on my site where I perform actions on User Login. I create an EntityMetadataWrapper like so: global $user; $uw = entity_metadata_wrapper('user', $user); And then I go to ...
0
votes
1answer
30 views

Event related to node - how to display?

Thinking how to achieve what I need, looking into possibilities. I have a content type that is used for all kind of locals: restaurants, clubs and so on. Now, what I want is to have a list of nearest ...