Questions tagged [drupal-views-relationship]

This tag is for questions about relationships used with the Views module.

21 questions
2
votes
1 answer

Drupal 8 Contextual Filter Based Upon Current User

Somehow I am not getting it. I have created a Taxonomy of Organizations. I have then added a custom required field to my User accounts call "Organization". I would like to create a view where the currently logged in user can only see a list of…
1
vote
0 answers

Drupal Views: Remove actions(edit button) on drupal views from view_pre_render hook conditionally

Drupal Views: Remove actions(edit button) on drupal views from view_pre_render hook conditionally: I am trying to hide/remove the edit button for few records conditionally on a view from the hook view_pre_render. function…
1
vote
1 answer

Views 3 Relationship Handler

I am trying to write a relationship handler for Views 3 in Drupal 7, but am failing even to begin. Basically, I have a bunch of nodes of various types all with the same field attached to them. This field is a reference field linking off to a Civicrm…
Torrance
  • 450
  • 4
  • 11
1
vote
1 answer

In Drupal 8 views cannot add paragraph fields to exposed filter

In Drupal 8 views exposed filter I want to add paragraph fields of a content type but they are not showing up when I try to add them. I tried adding a relationship entity reference to the field in Views 'Advanced > Relationships' still I am not able…
1
vote
1 answer

Drupal Views relationship

In Drupal I have 3 content types (A, B, C) see link. A and C contain a node reference to B. Now I have a view which queries fields from A from an argument. I want to also show fields from C trough the relationschip with B, so: A has a nodereference…
Nealv
  • 6,856
  • 8
  • 58
  • 89
1
vote
1 answer

Drupal: Access A Field in hook_views_query_alter()

I have content type picture which has a field with the machine name score. I have implemented the hook_views_query_alter() which looks like the following; the main part is that I add a line which adds an extra where condition: function…
user1888243
  • 2,591
  • 9
  • 32
  • 44
1
vote
1 answer

Views Relationship with Custom Entity and Node

I have custom entity with just a base table and it is referenced with the node with its field field_a. Now I want to create the relationship between these two entities (node and my custom entity). I can get the result working but I am not getting…
prabeen giri
  • 803
  • 7
  • 18
1
vote
4 answers

Drupal views 3 - missing "MULTIPLE FIELD SETTINGS" in entity reference

Context: Content type Person has reference (multiple values) to a content type Work, using entity reference. Need: To display the title of each person node which references a given work, separated by a comma. Done: A view with a back reference,…
0
votes
0 answers

Drupal 10 and Group module: using Views to list entities and relate to a field in the Group membership plugin

I'm stuck with something I'd like to achieve using Drupal 10, Views and the Group module. The point is to have a website allowing parents (Users) to create a family (Group), add children (Nodes), then add expenses (Nodes) linked to a specific…
0
votes
1 answer

Data visualization using Drupal-8 Views, Flipped Table and Charts API?

I have created a simple form to collect 15 inputs. I installed Flipped Table to flip the table from row to column format and created a new view to display the flipped table using rendered entity. Then I added a chart attachment to the Master…
0
votes
1 answer

Drupal - View Field disappears when page is saved

We've got some pages on our Drupal 8.4 site (Program pages) that are supposed to show a list of courses in their program. After upgrading, the course list will disappear any time these pages are saved. Our setup involves 3 separate content…
0
votes
1 answer

Restrict Drupal view access by role

I would expect this would be easy but I can't seem to figure it out. Simple problem. I want to restrict access to a Drupal view as follows: Only current users who are members of a custom role may access the view OR The view only displays content…
christok
  • 1,087
  • 2
  • 12
  • 29
0
votes
1 answer

Drupal theming nested field collection

This is how my content-type looks like image what is the best way to theme this ? I used views and views-field-collections-items before. but I just couldn't get the 3rd field collection values i.e Revenue info as per the image. Suggest a best…
0
votes
1 answer

Drupal 7 - Views with Relationship and Filters issue

I'd like to create a View that shows all the users in a group (In this case a role) and their post count for a set date. I need it to also show the users who haven't posted. I can get this to work as long as there are no filters set. Once I add a…
0
votes
0 answers

Views join on custom table with file_managed table

I have custom table with a field called image_id. image_id is an integer which represents a file id of the managed_file table. I've read many tutorials on how to expose this field to views, and how to make a join with the managed file table. All…
Beto Aveiga
  • 3,466
  • 4
  • 27
  • 39
1
2