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

0
votes
1answer
11 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: ...
0
votes
1answer
18 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
46 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
0answers
12 views

Why is the Relation Dummy Field is empty when viewed through the API?

I'm using Relation to hook two content types today (A contains B; B is contained by A). I edited content so an instance of A contains two instances of B. I added the Relation Dummy Field to A, and ...
0
votes
1answer
18 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. (?) ...
0
votes
0answers
30 views

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

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
25 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 ...
0
votes
0answers
45 views

Create a relation between profile and terms by rules

I created a profile type called player (with profile2). This profile has a field called Skills of type "entity reference" (because in this way I can customize the results with a view...) referenced ...
0
votes
0answers
47 views

Line Items type and Product Display relations

What is the right way to use line item type, that assigned to product display (or maybe product type) in views? For example, we have catalog of product displays, based on taxonomy + views and they ...
0
votes
1answer
36 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 ...
0
votes
1answer
56 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
0answers
24 views

Implementing Hierachical data

In my real estate site I have created Property content type. I had fiends City and Location Term Reference fields. In fact I just added City field because earlier I did not thought I would store more ...
0
votes
1answer
58 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
104 views

How to build a registration system for an after school club?

I am working on a primary school site and need to build a tool which allows parents to register their children for an after-school club. It's the sort of thing that runs every day, so parents will ...
0
votes
0answers
33 views

2-mode weighted network relations

My project is about organizations of the civil society, they show a "project based cooperation pattern. But I believe projecting 1-mode network relations to 2-mode network relations can be useful ...
0
votes
0answers
31 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
81 views

Relation - Webform & Users & commerce Product

Use case : Create a Company to upload there product in commerce site. Add three user accounts for each company who can help in upload the product to the website. I used Webform to accept Company ...
0
votes
0answers
63 views

Using Rules with TMGMT - Creating a translated node and a relation

I'm on D7 and have one content type that I'd like to have translated via Rules: So if it is getting flagged or manually saved (either way) it needs to have a relation to the same endpoint as the ...
0
votes
0answers
124 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 ...
1
vote
0answers
50 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
201 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). ...
0
votes
1answer
275 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
182 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
43 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
167 views

hook_views_query_alter - need help getting started

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
149 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
539 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
246 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 ...
1
vote
1answer
587 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 ...
0
votes
2answers
230 views

How to implement user enrollment or subscription

I want to create a website with few courses on it. Each course will have a node of content type Course. I want users to be able to enter the course. So this is sort of a "many-to-many" relationship ...
0
votes
1answer
72 views

Which module for relationships in my particular case? [duplicate]

Possible Duplicate: Relation vs. References vs. Entity Reference for managing node-reference-type relationships in D7 I want to figure out which module (and, probably, strategy) will fit my ...
1
vote
1answer
2k views

In drupal 7 how to add a link to a node which creates another node related to the previous being visible only if a user has not yet done so?

I have a node #1 of content type A. If the user equals a certain role AND has not yet done the following, show a link within node#1 saying "create node of type B". If the user clicks this link, he ...
0
votes
1answer
50 views

Related nodes displaying same related data

drupal 7, using views and eva. So i have restaurant nodes and menu nodes, and all menus nodes relate to a restaurant node, now i have a duplicate restaurant node which is just showing an alternative ...
0
votes
1answer
162 views

Need To Update One Entity Through Another

I've been trying every angle I can, but I keep running into Revision ID errors when I try to update a referenced or related entity of another entity. I believe this might be on the right track? I'm ...
0
votes
1answer
259 views

Using Rules to Update the Data of a Relations Endpoints (Referenced Entities)

I have a Rule which triggers on a Relation update. It then checks for the Entity type of the first endpoint of the Relation. Then checks for a specific field. When I try to set an action to change ...
1
vote
3answers
582 views

How to add Follow Me link inside content type in Drupal 7

My project contains two content types:- Professor and Lecturer. Here the users are student so students can log in using their own credentials. Now I want to show up a button/link with Text "Follow ...
0
votes
1answer
644 views

Is there any free LMS or LCMS components / module in drupal that support Scorm standards

I'm starter in Drupal and want to know if there we have strong features for Learning Content management systems continue on Research and deploy a project on it in my company. If the these features ...
1
vote
1answer
110 views

Relation and Entity Share a Field / Reference Each Other

I can't seem to get this to work. I've searched and search, and maybe I'm not using the correct terminology, but I need to add a custom field to a Relation that reads a value from the Entity its ...
2
votes
1answer
71 views

Sharing fields and their data between a user profile and a content type?

I have a content type called "Profile". This is a standalone content type and may or may not be associated with an actual user on the site. I thus need to find a way of sharing profile fields between ...
0
votes
2answers
567 views

Filter view based on several user profile fields (D7)

I’m trying to apply automatically several filters to a view based on the corresponding profile fields selected by the current user. For example, the users can select a favourite color (yellow, ...
2
votes
1answer
128 views

Are custom content types a good way to model the classic entity relationship model?

I have several content types which will store thousands of records each one. Those content types will be related to each other as in a classic 1..N or N..M relationships I would like to query those ...
2
votes
1answer
128 views

How to display user submitted nodes in the node detail view of the same user?

I'm aware of such modules as Relation and Entity reference but I can't figure out how I make automatic relation between nodes that depend on the user that submitted those nodes. Site has users A, B, ...
1
vote
1answer
66 views

How to display a create node form together with a referenced node of a different type

I'm using a content type for Clients and another content type for Tasks. Each client has many tasks and each task belongs to one client. Both types are connected by a reference field defined for the ...
0
votes
1answer
34 views

How woud you plan a sector directory with Drupal?

I have to realize a sector directory, a directory of restaurants, bars, wineyardsm, carpenter... So each sector has it's own properties like the menu card or something else. But there are properties ...
0
votes
1answer
357 views

Relation between field of two webform

I have created two webform as Vendor and Sponsors.There is two sponsorship type as gold and platinum in sponsors and each vendor is sponsors. Now i want to show in Vendor view the type of sponsorship ...
1
vote
2answers
219 views

Re: Relation Module

I have/had been working on a 'self-learning' development project based on a D7 stack and utilsing the http://drupal.org/project/recruit* however the author earlier this year ceased development. I had ...
1
vote
1answer
423 views

How to set relationship when I create a new (custom) content to another (custom) content in Drupal

Premise: I'm new in the world of Drupal, so sorry if this is a stupid question. What I need is to set some relationships for some new content types I created. For example, I created the "Person" ...
0
votes
1answer
1k views

Relation module tutorial [closed]

I could not find good quality of tutorials on Internet for learning Relation module . Could anyone suggest some links for good documentation/tutorial for relation module ? Thank you .
0
votes
1answer
87 views

Using the API of relations module

How can I use the API and hooks of a contributed module, I am trying to use relations module to add my functionalities using that module but I could not find any documentation that help me to do that ...
1
vote
1answer
1k views

create relation between two nodes using the relation module

I am using the relation module and i don't like the way the default relation blocks work(entity collector and relation add blocks). SO I'm trying to write my own block for creating relation. I have a ...