Questions tagged [entityreference]

89 questions
0
votes
1 answer

How to create a view in Drupal 7 that shows only a filtered list based on a field of the current user

I'm trying to create a view that filters the resulting pages (content type) based on the association of the same entity of the current logged in user. This is my situation in detail: user: field_organizations (n) (Entity reference field to Content…
ciaobetty
  • 93
  • 1
  • 1
  • 6
0
votes
1 answer

Autofill fields in drupal7

I'm trying to autofill text fields after selecting an item from select list. What I mean is: first I want user to choose an item from select list and then there will be 3 more text fields and I want to give them distinct values based on which was…
Kris
  • 23
  • 8
0
votes
0 answers

Drupal 7 - How to add article at URL location based on taxonomy?

I want to be able to add articles to my Drupal 7 website where the URL location is automatically generated based on the taxonomy. Therefore, if I choose the taxonomy "News > Local > Town", it will be placed on my site at…
0
votes
1 answer

Drupal 7: How to sort nodes on nearest date of referencing entities?

Here's something I can't wrap my head around, and wonder if it is possible at all: I have a content type Events. All events have a date-field. Each Event also has an entity-reference-field to choose an overarching Series. Now, with Views I want to…
0
votes
0 answers

Input Textbox value not replacing < with < in xsl

display-name is not displaying < correctly instead it displays as <. In view-source it appears as &lt; I want that to display properly. I tried in many ways but doing in back end and in the java code its providing error saying premature end…
0
votes
0 answers

Textbox not rendering entity reference in a correct format

In my web application, i have textbox whose value are got from Database. In DB the value of the textbox contains entity references such as &< etc but while rendering it on screen its not getting fetched correctly. Example Value in DB : Hi & How…
0
votes
1 answer

Replace Special characters with Character references in string using java

I have a String with special characters which I want to be replaced by corresponding reference. For example InputString -> Hi How &are you ! OutputString -> Hi <Nishanth> How &are you &excl I tried using concept of replace. But I…
0
votes
2 answers

Listing entity references of referenced node with Views in drupal

I am using Drupal 7 an have three content types: A, B and C. A references to B, B references to C. Now I would like to display a block on nodes of content type A of the following form: B1 --C1 --C2 --C3 B2 --C4 --C5 --C6 ... I get as far as to…
andir
  • 1
  • 1
0
votes
1 answer

How can i populate data from a reference node into another content type in drupal 7?

I using drupal 7 and i need some ideas for this problem. I have two content types. hospitals and referral form. I would like to pull data from the hospital form automatically, example hospital name, address, contact etc when the user fills in the…
0
votes
0 answers

Remove EntityReference from CRM 2015 value

I am doing a tool to synchronize some to data between CRM and another application. Now I have to remove the value from a EntityReference. I am trying in this way: contact.ParentCustomerId = null; But it does not work. That does not give me any…
Simone
  • 2,304
  • 6
  • 30
  • 79
0
votes
2 answers

Drupal 7 - Term reference field: how to add new term?

I have some texonomies in my Drupal website. Some of them have additional fields. I have some fields of type Term reference in my content-types. When I am creating a new node of a content-type, I would like to have the ability to add a new term to…
webpaul
  • 156
  • 4
  • 18
0
votes
1 answer

Drupal 7 - Entity Reference - Display only items related to node that is related to another node

I have 3 Content Types: Restaurant, Menu, and Menu Item. I've set up my Restaurant content type so that when a 'Restaurant' is created I have the ability to create a Menu with Menu Items, using the Entity Reference and Inline Entity Form modules.…
barrakuda
  • 11
  • 3
0
votes
1 answer

Drupal 7: Feeds doesn't assign feed items to organic group

I installed "Organic Groups" and "Feeds". I have 2 content type (feeds and articles). Feeds works fine, it imports the items well. I assign feeds and articles content to a group (both have group reference field), but when I import with Feeds, the…
0
votes
1 answer

Drupal 7 - Change field widget type based on form status (add/edit)

I have an entity reference field using Autocomplete widget type. I´d like to change the widget type to 'select list' for adding new node, and keep autocomplete when editing. Have been two days I´m working on this. I didn´t found any solution.
John
  • 33
  • 1
  • 4
0
votes
2 answers

Is EntityReference.Load checking for EntityReference.IsLoaded?

Hi I was wondering if EntityReference.Load method includes If Not ref.IsLoaded Then ref.Load() My question is basically: Dim person = Context.Persons.FirstOrDefault person.AddressReference.Load() person.AddressReference.Load() 'Does it do…