The Relation module is an API module, and storage model for both simple, and the most complex relations between entities.

learn more… | top users | synonyms

1
vote
1answer
52 views

How can I get all related entities of a node programmatically?

I am writing some drush scripts and find myself needing to get related entities (nodes) of the current node. However I can only find info for constructing views that do this. Can anyone tell me is ...
1
vote
0answers
15 views

Grabbing and Manipulating Endpoints/Referenced Entities in Rules

Using Rules, I am creating relations from a Lab Cage Content Type that has a field that is an entity reference list, where you can select a list of Mice entities. For instance, if the user selects 3 ...
0
votes
0answers
15 views

Related Articles on the basis of comma separated values from text area

I'm having a text area tags attached to my content type article for showing the related articles on the basis of comma separated values; for eg: "asia, india, south korea". Previously I was using ...
2
votes
1answer
50 views

How to implement just a 'Purchase Order' solution (without Drupal Commerce)?

Here is the situation: I need create a content type 'Purchase Order' with just few fields: date, product to buy, quantity, price unit, price total, author. The goal is don't need be finding in the ...
0
votes
1answer
11 views

How do I delete all the relations on my site?

I want to remove all the relations (created with the Relation module) on my site because I have replaced them with an entityreference field. At /admin/structure/relation, I can delete the Relation ...
0
votes
0answers
28 views

Allow user to block another user from accessing their nodes/content

I am trying to figure out the best way to allow User 1 to block User 2 from viewing/accessing any of User 1's content (nodes they have created, Profile2 page, etc). Ideally, User 1 will not show up in ...
0
votes
1answer
28 views

How can I create a View that shows nodes without a relation?

On my site, all the nodes of content type ABC are supposed to have a relation (from the Relation module) to a user. However, although the relations are usually created in Rules, somehow this didn't ...
0
votes
1answer
21 views

Possible to build Relation Type between two specific Content Types?

I have created Content Types: Person, Story, Company, Series, Article, Basic Page, plus other content types in the Node bundle. I want the Relation Type between Person and Story only (i.e. "is author ...
0
votes
1answer
27 views

Parent term relations select list as Hierarchical select list

I would like to change the Taxonomy relation select list like as Hierarchical Select list, how can I change its nature? Please help]1
1
vote
1answer
36 views

Referencing logged user and node relations.

I am trying to solve a problem with no luck: I have 4 objects in Drupal: -Company user (role company) -Mod user (role moderator) -Node Project -Node Person (not a user entity) Company user can ...
1
vote
0answers
17 views

Add a relation via Entityform

I have created a relation called user-advisor relation between a user and a content type I named Advisor on my Drupal 7 site. I have also created an entityform type called Advisor where I have created ...
0
votes
0answers
22 views

Require relationship and parent term in taxonomy - Drupal 7 [duplicate]

I have a taxonomy term with hierarchy (two levels, mother and children). When I set a relationship and say "Require relationship", all items dissapear which do not fit the relationship (Content having ...
1
vote
0answers
33 views

Taxonomy Terms mapping Many to one mapping | Complex

I have a typical / complex task and need help. this is with related to taxonomy terms and creating many to many kind of relations but without duplicating the terms, please see this excel sheet for ...
1
vote
1answer
37 views

One-One mapping between content types

I am having 2 content types names All Events and Event. Event as the name is self descriptive it represents an single event(programme). Whereas All Events contains additional data related to events, ...
1
vote
0answers
62 views

How to set all subusers created by a user, or their role, to expire on a specific date

I need to create licensing functionality for a website. Part is done: via the subuser module, I can set up a licensing admin who can create a certain number of subusers that function as licenses based ...
1
vote
1answer
104 views

Get a multiple value listing of related node IDs using Relation module and Views node ID field

The situation The awesome Relation module uses so called endpoints in a dummy field to show related entities to a given entity. Sadly there is (still) no way to (really) decide what field values of ...
1
vote
0answers
30 views

Using views Org Chart in Drupal

I am trying to use Views org chart module in drupal. I have created a node type contact using CCK module which stores in personal details of any person. I have used relation module to create relation ...
2
votes
0answers
19 views

How can I add an end-user-friendly “Add Relation” block?

Note: I am currently using Entity Reference, but am willing to use a different module if it makes the solution easier. I am currently developing a recipe-sharing site with two content types - "...
0
votes
0answers
20 views

Creating Automatic Relations

Consider this scenario: I have 3 nodes A,B,C where A is father of B , B is father of C and I have created these two relations using the relations module. Now it implies that A is grandfather of C. ...
0
votes
0answers
18 views

How to configure conditional filed (Entity reference)?

I have configured two fields, one is of type taxonomy reference and other is entity reference (Node). All nodes are attached with some taxonomy terms. First field consists of all the taxonomy terms ...
0
votes
2answers
81 views

How to relate a field to another field in content type like a foregn key?

Can anyone guide my to the best method or module to connect 2 fields together? I want to create a field called (Author) in a content type book, which will refer to a field called (name) in a content ...
2
votes
1answer
58 views

Can't delete Relation module

I'm trying to disable or delete the Relation module (and about to pull what's left of my hair out). Relation and Relation Endpoints Field are checked, but greyed out so I can't uncheck them. I don't ...
0
votes
0answers
16 views

Relation: Translating a node removes its relation

I have a weird problem regarding the Relation module and translations in Drupal 7. I have types for companies and buildings and I have a relation between company and building that means that the ...
0
votes
0answers
28 views

programmitacly get related nodes by terms

Im trying to get nodes related to a node in my module i found https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_select_nodes/7 its only accepting 1 TID ... i mean ...
0
votes
1answer
38 views

Workflow for Entity relationship / relations

I have a content type called Blog. I want the end users to be able to add new relations between the blogs, so that we can build a network of related blogs. But the challenges I am facing are Users ...
0
votes
2answers
112 views

How to list node parent's children

Sorry if this is a repeated question, tried many suggested options but no result. There is business model of 1 to N relationship "parent and children". I am working on a project where i have a ...
0
votes
1answer
85 views

Difference between Relation and term reference field

Can anyone explain, what is the difference from practice point of view between relation (by Relation module) and term reference? I mean if I will use as product attribute taxonomy term, what type of ...
1
vote
3answers
76 views

How do I create a content type that has another content type embedded inside of it?

I'm building a content type for a journal-type product. In each journal there are a number journal articles that vary from journal to journal, which have their own unique fields (like author, date, ...
0
votes
2answers
50 views

How to relate nodes in Drupal 7 [closed]

How can I relate content in Drupal 7? I have three content types: Product Group ( With detail page ) Product ( With detail page ) Application ( With detail page ) A product belongs to a product ...
0
votes
1answer
29 views

Relationships Between Content Types

I have 3 content types that I have created: order, product and salesperson. The fields for each are as follows: Order: Purchaser Name, Product (entity reference to Product), Quantity Product: ...
2
votes
1answer
98 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 ...
1
vote
1answer
74 views

Is there a hook when a relation is created, updated or deleted?

I know how to use hooks like hook_node_presave. Is there also a hook to catch the deletion of a relation or the update of a relation? In the API I cannot find anything. Maybe there is a workaround? ...
0
votes
1answer
58 views

Parent and subordinary weights and relations like in menu and taxonomy system module

It seems that there is no module in the contribution repository which simulates the behaviour like this of terms in given vocabulary or menu items in a given menu from system modules in Drupal 7. (?) ...
1
vote
0answers
99 views

Entity references or Relation for A<=>B , B<=>C and A =>(B)=> C? [closed]

Another which module question ... I know. Sorry for that. But time changes answers. I need transitive bi-directional references, where both ends know from each other (to handle them with rules, ...
0
votes
0answers
26 views

Add below each node type A the related nodes of type B

How can I do the following: Display all nodes of content type A (done!) Add underneath each node A fields of related nodes of type B (???) I use Drupal 7 and Views 3. This post suggests the use of ...
1
vote
1answer
71 views

Display node's details instead of ID with relation module

I have create Two node ‘Partners’ & ‘Project form’. I used relation module & create directional relation between two nodes. Partner’s node have following fields: I have to select multiple ...
1
vote
1answer
188 views

Filter RelationQuery by relation_type

I have some 2-point-relations called 'is_member_of' where the source endpoint is a person and the target endpoint is a group. I like to list all of the members (without using a view). In the code I ...
0
votes
1answer
96 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
35 views

Reference to content type

I have multiple content types for consumer electronics goods, like "tv", "laptop", "mouse" etc. Every content type has its own fields and exposed using contexts and views with custom facet api blocks –...
0
votes
0answers
210 views

Drupal 6 - Views Conditional Relationships

I want to accomplish a combined Calender (litecal) view with multiple connected Content Types. One content type is an Internship and the other is an Event. Difference between these two is de ...
2
votes
0answers
71 views

How to view all nodes that have the same relation to another node?

I'm using Relation for drupal 7 with views. There is a content type 'Review', which has a relation('is a review of') to Listings and Events. What I want is two blocks in the right sidebar on the ...
0
votes
1answer
244 views

Filter taxonomy terms in common to nodes related to the viewed node

I want to filter taxonomy terms in common to nodes related to the viewed node, but I cannot figure out how. What I am getting are all the terms that the related nodes have (with repeated terms too). ...
2
votes
2answers
781 views

Faceted search using fields from a related node, is it possible?

Drupal 7 Modules: Facet_api 7.x-1.3 Search_api 7.x-1.6 Relation 7.x-1.0-rc4 My site has two nodes, node one provides a description of various astronomical objects and node two are images and their ...
0
votes
1answer
372 views

Access field on relation from rule

I am using the Drupal 7 Rules and Relation modules. I have a relation between a user entity and a node content type (membership). The relation has an added field (relationship type). I was able to ...
1
vote
1answer
82 views

Creating a view of relation fields limited to the relations that a currently viewed node is an endpoint of

To first explain the set up, I have a custom content type that represents a candidate. I have a relation between candidate and users where the relation has some fields (using the relation module). I ...
3
votes
1answer
214 views

How to add a new calculated field by using `hook_views_query_alter`?

I have three node types that I have created relations between using the Relation module. Seaon --> Player --> Week The player node has a numeric field called cost. The relationship between the player ...
1
vote
0answers
205 views

Content types complex relationships

I'm trying to build a system where I have people, departments and facilities but they must link through a triple join table. Basically, a person can belong to multiple departments OR can work ...
2
votes
1answer
877 views

How can I get a relation by the endpoints using the “Fetch entity by property” action in rules?

Short version: I want to fetch a relation by the endpoints. The relation already exists in the database. How can I use the Fetch entity by property action to return the relation? Long version: I'm ...
0
votes
1answer
402 views

Adding extra info to each Node -> Taxonomy Term relationship

We have a basic site with a pages that have a taxonomy term content type associated with a number of terms. What we would like to is to add more information to each of the node -> taxonomy ...
2
votes
1answer
1k views

Relation: add button to create node related to current node

I have 2 Content types called Schools and School News and i want to add a add News Button to those School pages, so editors can create a new post for this specific school. I thought about using ...