How can I view the list of referenced nodes when viewing a node?

You don’t need Views to do this, although it is possible to make it work with the correct configuration.

The easiest way is to configure what your Entity Reference field should display.

Configure “Manage display” for the ER field

Go to the Manage display page of your Content Type (admin/structure/types/manage/(myCT)/display/) and change your “Related pages” field to Rendered entity instead of Label.


Use Display modes

If you want to limit which fields of the referenced pages are shown on the page that references them, you can create a new Display mode (under Structure menu) where only the fields you want are enabled. Then use that mode on the ER field settings instead of the “Rendered entity”.


Use Views Block with ER Relationship and Contextual filter

If you want to do it through Views to show the Parent fields on the Child node you need to add the Relationship for the ER field, then add the Contextual filter for the ID and Provide default value Content ID from URL, and when using fields make sure they use the Relationship to show the data from the referenced pages and not the (child) page you’re currently viewing.

views – Parent Node Needs to Display the Webform Scheduled Date that is Referenced in the Child Node

I’m not sure how best to approach this problem and I’m hoping someone can point me in the right direction.

Quick summary of the setup of some nodes:
Node A is the parent node.
Node B is a child of Node A. Node B also houses/displays webforms. We have a “form” field in Node B where we can call existing webforms and Node B will then display the webform and any additional information (entered in Node B) to the user.

Now to the problem:
The nodes are displayed via a carousel (using jQuery Cycle2). Editors add content (Node A) to the carousel using Entity Queue. The entity queue is tied to a view, which is set up to display the required fields from Node A in each “card”. If a webform exists, and Node A references Node B with the webform, the webforms’ scheduled date needs to display on that particular carousel card.

In my view, I have a contextual filter on the “Content: Webform Reference”, but this only displays the webform date if Node B is entered in the Entity Queue. Since Node B will NEVER be used in the Entity Queue, I need to find a way to get to the webform schedule date from Node B when Node A is called.

Is it possible to do something like this within the view? Or would this require a custom plugin block?

google sheets – Keeping referenced data organized after sorting

I run a Cub Scout Pack, and when scouts fundraise, a portion of the money they earn can go into an “account”. Money can then be used to pay for scouting-related activities.

I’m trying to create a simple spreadsheet to keep track of when scouts earn money, and when they’ve used it.

Here’s what I have so far.

It seems to be working fine. The problem is that if I sort any of the tabs by the Scout’s name, the data in the relevant columns doesn’t stay sorted and attached to the actual scout.

Any tips on how I can best set this spreadsheet up to accomplish my goals?

Field difference plugin for referenced entities

We have a way to see diff for field changes/revision on paragraphs hosted on any entity, however does not look like we have similar functionality for Referenced Media Entities.

Paragraph module seems to provide Field Diff plugin, ER field provide a similar plugin which allows to compare of Label or ID but not on fields.

Just wanted to check if I am missing any configuration or it requires extending the ER plugin to show field diff.

Get Title of a referenced Node from a field within a paragraph in Views, Drupal 9?

I am trying to build a View that lists People’s Profiles which are referenced to a Team via a Paragraph (within that Profile) to print out the Name of the Person and other data from the Profile.

Content-Type “Team” is for representing a Team, with Title, Picture and Description.

Content-Type “Profile” has some Fields like Title, Name, … and a Paragraph with further Role-based Data for a Team or some Teams.

Profile:

  • Name
  • Body
  • Role_in_Team (Paragraph):
    • Datetime_Start
    • Datetime_End
    • Role_Name
    • Team_Reference (Entity reference to a Team)

On a Team’s page, a View shall show the matching Profiles beneath.

I build a Views Block with:

  • Contextual Filter with “ID from URL” to relate everything just to the shown Team page
  • A Relationship with “Team_Reference” to show only Paragraphs that are referenced to (this) Team (Paragraph uses “Team_Reference”)
  • A Relationship with “Content using Team_Reference” (with Relationship “Team_Reference” within)

The View Block shows the correct Number of Profile Entries (that are referenced) but I can’t get it to show the Profile’s Names.

How to get Access to the Fields of the Parent Node of the specific Paragraph?

Sample-Output of Views Block

I add the Export of this Views Block here…

uuid: 60312c0b-a7b5-4e59-9935-005b4eeec9c3
langcode: de
status: true
dependencies:
  config:
    - field.storage.node.field_geburtstag
    - field.storage.paragraph.field_bezeichnung
  module:
    - datetime
    - node
    - paragraphs
    - user
    - views_bootstrap
id: team_profile
label: Team->Profile
module: views
description: ''
tag: ''
base_table: node_field_data
base_field: nid
display:
  default:
    display_plugin: default
    id: default
    display_title: Master
    position: 0
    display_options:
      access:
        type: perm
        options:
          perm: 'access content'
      cache:
        type: tag
        options: {  }
      query:
        type: views_query
        options:
          disable_sql_rewrite: false
          distinct: false
          replica: false
          query_comment: ''
          query_tags: {  }
      exposed_form:
        type: basic
        options:
          submit_button: Anwenden
          reset_button: false
          reset_button_label: Reset
          exposed_sorts_label: 'Sort by'
          expose_sort_order: true
          sort_asc_label: Asc
          sort_desc_label: Desc
      pager:
        type: some
        options:
          items_per_page: 5
          offset: 0
      style:
        type: views_bootstrap_table
        options:
          grouping: {  }
          row_class: ''
          default_row_class: true
          override: 1
          sticky: 0
          caption: ''
          summary: ''
          description: ''
          columns:
            title: title
            field_geburtstag: field_geburtstag
          info:
            title:
              sortable: 0
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: 0
              responsive: ''
            field_geburtstag:
              sortable: 0
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: 0
              responsive: ''
          default: '-1'
          empty_table: 0
          responsive: 0
          bootstrap_styles:
            striped: 0
            bordered: 0
            hover: 0
            condensed: 0
      row:
        type: fields
      fields:
        title:
          id: title
          table: node_field_data
          field: title
          relationship: none
          group_type: group
          admin_label: ''
          label: ''
          exclude: false
          alter:
            alter_text: false
            text: ''
            make_link: false
            path: ''
            absolute: false
            external: false
            replace_spaces: false
            path_case: none
            trim_whitespace: false
            alt: ''
            rel: ''
            link_class: ''
            prefix: ''
            suffix: ''
            target: ''
            nl2br: false
            max_length: 0
            word_boundary: true
            ellipsis: true
            more_link: false
            more_link_text: ''
            more_link_path: ''
            strip_tags: false
            trim: false
            preserve_tags: ''
            html: false
          element_type: ''
          element_class: ''
          element_label_type: ''
          element_label_class: ''
          element_label_colon: false
          element_wrapper_type: ''
          element_wrapper_class: ''
          element_default_classes: true
          empty: ''
          hide_empty: false
          empty_zero: false
          hide_alter_empty: true
          click_sort_column: value
          type: string
          settings:
            link_to_entity: true
          group_column: value
          group_columns: {  }
          group_rows: true
          delta_limit: 0
          delta_offset: 0
          delta_reversed: false
          delta_first_last: false
          multi_type: separator
          separator: ', '
          field_api_classes: false
          plugin_id: field
        field_geburtstag:
          id: field_geburtstag
          table: node__field_geburtstag
          field: field_geburtstag
          relationship: none
          group_type: group
          admin_label: ''
          label: ''
          exclude: false
          alter:
            alter_text: false
            text: ''
            make_link: false
            path: ''
            absolute: false
            external: false
            replace_spaces: false
            path_case: none
            trim_whitespace: false
            alt: ''
            rel: ''
            link_class: ''
            prefix: ''
            suffix: ''
            target: ''
            nl2br: false
            max_length: 0
            word_boundary: true
            ellipsis: true
            more_link: false
            more_link_text: ''
            more_link_path: ''
            strip_tags: false
            trim: false
            preserve_tags: ''
            html: false
          element_type: ''
          element_class: ''
          element_label_type: ''
          element_label_class: ''
          element_label_colon: false
          element_wrapper_type: ''
          element_wrapper_class: ''
          element_default_classes: true
          empty: ''
          hide_empty: false
          empty_zero: false
          hide_alter_empty: true
          click_sort_column: value
          type: datetime_default
          settings:
            timezone_override: ''
            format_type: medium
          group_column: value
          group_columns: {  }
          group_rows: true
          delta_limit: 0
          delta_offset: 0
          delta_reversed: false
          delta_first_last: false
          multi_type: separator
          separator: ', '
          field_api_classes: false
          plugin_id: field
        field_bezeichnung:
          id: field_bezeichnung
          table: paragraph__field_bezeichnung
          field: field_bezeichnung
          relationship: reverse__paragraph__field_referenz_auf_team
          group_type: group
          admin_label: ''
          label: Bezeichnung
          exclude: false
          alter:
            alter_text: false
            text: ''
            make_link: false
            path: ''
            absolute: false
            external: false
            replace_spaces: false
            path_case: none
            trim_whitespace: false
            alt: ''
            rel: ''
            link_class: ''
            prefix: ''
            suffix: ''
            target: ''
            nl2br: false
            max_length: 0
            word_boundary: true
            ellipsis: true
            more_link: false
            more_link_text: ''
            more_link_path: ''
            strip_tags: false
            trim: false
            preserve_tags: ''
            html: false
          element_type: ''
          element_class: ''
          element_label_type: ''
          element_label_class: ''
          element_label_colon: true
          element_wrapper_type: ''
          element_wrapper_class: ''
          element_default_classes: true
          empty: ''
          hide_empty: false
          empty_zero: false
          hide_alter_empty: true
          click_sort_column: value
          type: string
          settings: {  }
          group_column: value
          group_columns: {  }
          group_rows: true
          delta_limit: 0
          delta_offset: 0
          delta_reversed: false
          delta_first_last: false
          multi_type: separator
          separator: ', '
          field_api_classes: false
          plugin_id: field
      filters:
        status:
          value: '1'
          table: node_field_data
          field: status
          plugin_id: boolean
          entity_type: node
          entity_field: status
          id: status
          expose:
            operator: ''
            operator_limit_selection: false
            operator_list: {  }
          group: 1
      sorts:
        created:
          id: created
          table: node_field_data
          field: created
          order: DESC
          entity_type: node
          entity_field: created
          plugin_id: date
          relationship: none
          group_type: group
          admin_label: ''
          exposed: false
          expose:
            label: ''
          granularity: second
      title: Team->Profile
      header: {  }
      footer: {  }
      empty: {  }
      relationships:
        reverse__paragraph__field_referenz_auf_team:
          id: reverse__paragraph__field_referenz_auf_team
          table: node_field_data
          field: reverse__paragraph__field_referenz_auf_team
          relationship: none
          group_type: group
          admin_label: field_referenz_auf_team
          required: false
          entity_type: node
          plugin_id: entity_reverse
        field_referenz_auf_team:
          id: field_referenz_auf_team
          table: paragraph__field_referenz_auf_team
          field: field_referenz_auf_team
          relationship: reverse__paragraph__field_referenz_auf_team
          group_type: group
          admin_label: 'field_referenz_auf_team: Inhalt'
          required: false
          plugin_id: standard
      arguments:
        nid:
          id: nid
          table: node_field_data
          field: nid
          relationship: none
          group_type: group
          admin_label: ''
          default_action: default
          exception:
            value: all
            title_enable: false
            title: All
          title_enable: false
          title: ''
          default_argument_type: node
          default_argument_options: {  }
          default_argument_skip_url: false
          summary_options:
            base_path: ''
            count: true
            items_per_page: 25
            override: false
          summary:
            sort_order: asc
            number_of_records: 0
            format: default_summary
          specify_validation: false
          validate:
            type: none
            fail: 'not found'
          validate_options: {  }
          break_phrase: false
          not: false
          entity_type: node
          entity_field: nid
          plugin_id: node_nid
      display_extenders: {  }
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - 'user.node_grants:view'
        - user.permissions
      tags:
        - 'config:field.storage.node.field_geburtstag'
        - 'config:field.storage.paragraph.field_bezeichnung'
  block_1:
    display_plugin: block
    id: block_1
    display_title: Block
    position: 1
    display_options:
      display_extenders: {  }
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - 'user.node_grants:view'
        - user.permissions
      tags:
        - 'config:field.storage.node.field_geburtstag'
        - 'config:field.storage.paragraph.field_bezeichnung'

Need a Google Sheets operator that passes the string contained in a referenced cell

I would like to replace the explicit “Brandon” with a reference to the adjacent cell but I need an operator that I can wrap around J40 (the cell to be referenced) that passes the string contained in that cell such that the “* *” can still act on it within the context of the countif function.

Put simply I need the ???? in "*????(J40)*"

two cells in a google sheets document

Discover where a list is referenced

I am using sharepoint 365.

The cliente need to delete one list.

He is not sure if any other list uses the list that will be deleted.

Is there a way to discover if the list is referenced into another areas of sharepoint?

ThankĀ“s in advance

How to add a node to the same group as a referenced node, using Business Rules

Using the groups module, my goal is to use Business Rules in order to automatically add a node to the same group as another node that is referenced using an entity reference field). The setup is as follows:

Node type project (is group content, has group field)
Node type page (is group content, has group field)
Group (has project and page nodes plugins enabled)

A page has an entity reference field that can reference a project.

When saving a page (either new or existing) I want the page to be added to the same group as the project.
For now assume that each project is part of only one group.

Using Business Rules:

Variables:

  • project variable
  • group variable
    Actions:
    1- Fetch project by ID (node:field_project:entity:nid) THIS WORKS
    2- Fetch group ID {{project_variable->entitygroupfield:0}} THIS DOES NOT WORK
    3- Add node entity to a group DIDNT GET TO THIS BECAUSE OF ACTION 2 NOT WORKING

Results:
The project ID is correctly fetched, but the group ID is not found.

It probably is because the context is not present of the group of which the project is part of, but I don’t know how to add that.

modules:

views – Count how many times a node is referenced

I have a content type: classroom

I have another content type: lesson

Lesson nodes have an entity reference field (field_classroom) that reference classrooms.

I want to create a view that outputs a table like this:

Classroom Number of lessons
Leicester Square 5
Piccadilly Circus 8
London Bridge 0

So, there are five lesson nodes that reference the “Leicester Square” classroom (all the classrooms are named after places in London), 8 that reference the classroom named Piccadilly Circus, and 0 lesson nodes referencing London Bridge.

Is there a way to achieve this in views?

I’m playing around with relationships and aggregation but I can’t get it to work.

python – Ensuring that attributes referenced by a mixin are present in the children class

I have implemented the below _get_schema method to ensure that schema attribute is always present on the Todos instance, and can therefore be used in the mixin.

Is it OK to do it like this? As far as I know, mixins usually do not implement constructors.

Is there a better way to make sure that someone did not forget to explicitly set the schema attribute in the Todos class, especially that this attribute is also not inherited from View?

class Mixin:
    def __init__(self):
        self._get_schema()
        super().__init__()

    def _get_schema(self):
        if not hasattr(self, 'schema'):
            msg = f'No "schema" attribute provided in {self.__class__.__name__} class'
            raise Exception(msg)

class Mixin:
    def __init__(self):
        self._get_schema()
        super().__init__()

    def _get_schema(self):
        if not hasattr(self, 'schema'):
            msg = f'No "schema" attribute provided in {self.__class__.__name__} class'
            raise Exception(msg)

class View:
    def __init__(self):
        print('view constructor')

class Todos(SchemaMixin, MethodView):
    schema = 'todo schema'

todos = Todos()