如何在内容类型添加tabs标签

系统:centos7

运行环境:LNMP+Drupal8

我想实现在所有人物类型的NODE里添加一个相关电影的标签

如下图:

人物类型的路径是people/%

电影类型的路径是movie/%

相关电影的views路径是people/%/movie

以下是我的D8配置,大神们帮我看看我那里出错了。

人物内容类型

uuid: 42bb2a1c-f46a-4a37-a090-d7026e4b10e4
langcode: zh-hans
status: true
dependencies:
  module:
    - menu_ui
third_party_settings:
  menu_ui:
    available_menus: {  }
    parent: ''
name: 人物
type: renwu
description: ''
help: ''
new_revision: false
preview_mode: 1
display_submitted: true

电影内容类型

uuid: 568e0967-6ecb-4479-87b5-658911a93680
langcode: zh-hans
status: true
dependencies:
  module:
    - menu_ui
third_party_settings:
  menu_ui:
    available_menus: {  }
    parent: ''
name: 电影
type: dianying
description: ''
help: ''
new_revision: false
preview_mode: 1
display_submitted: true

views

uuid: 2d822f58-9f3d-41e9-8409-1602407b7ae1
langcode: zh-hans
status: true
dependencies:
  config:
    - node.type.dianying
    - node.type.renwu
  module:
    - node
    - user
id: xiangguandianying
label: 相关电影
module: views
description: ''
tag: ''
base_table: node_field_data
base_field: nid
core: 8.x
display:
  default:
    display_plugin: default
    id: default
    display_title: Master
    position: 0
    display_options:
      access:
        type: perm
        options:
          perm: 'access content'
      cache:
        type: none
        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: 应用
          reset_button: false
          reset_button_label: 重置
          exposed_sorts_label: 排序依据
          expose_sort_order: true
          sort_asc_label: 升序
          sort_desc_label: 降序
      pager:
        type: mini
        options:
          items_per_page: 10
          offset: 0
          id: 0
          total_pages: null
          expose:
            items_per_page: false
            items_per_page_label: 每页条目数
            items_per_page_options: '5, 10, 25, 50'
            items_per_page_options_all: false
            items_per_page_options_all_label: '- 全部 -'
            offset: false
            offset_label: 偏移量
          tags:
            previous: ‹‹
            next: ››
      style:
        type: default
        options:
          grouping: {  }
          row_class: ''
          default_row_class: true
          uses_fields: false
      row:
        type: fields
        options:
          inline: {  }
          separator: ''
          hide_empty: false
          default_field_elements: true
      fields:
        title:
          id: title
          table: node_field_data
          field: title
          entity_type: node
          entity_field: title
          label: ''
          alter:
            alter_text: false
            make_link: false
            absolute: false
            trim: false
            word_boundary: false
            ellipsis: false
            strip_tags: false
            html: false
          hide_empty: false
          empty_zero: false
          settings:
            link_to_entity: true
          plugin_id: field
          relationship: none
          group_type: group
          admin_label: ''
          exclude: 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_alter_empty: true
          click_sort_column: value
          type: string
          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
      filters:
        status:
          value: '1'
          table: node_field_data
          field: status
          plugin_id: boolean
          entity_type: node
          entity_field: status
          id: status
          expose:
            operator: ''
          group: 1
        type:
          id: type
          table: node_field_data
          field: type
          value:
            dianying: dianying
          entity_type: node
          entity_field: type
          plugin_id: bundle
      sorts: {  }
      header: {  }
      footer: {  }
      empty: {  }
      relationships:
        field_renwu:
          id: field_renwu
          table: node__field_renwu
          field: field_renwu
          relationship: none
          group_type: group
          admin_label: 'field_renwu: 内容'
          required: false
          plugin_id: standard
      arguments:
        nid:
          id: nid
          table: node_field_data
          field: nid
          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
        - url.query_args
        - 'user.node_grants:view'
        - user.permissions
      tags: {  }
  page_1:
    display_plugin: page
    id: page_1
    display_title: 页面
    position: 1
    display_options:
      display_extenders: {  }
      path: people/%/movie
      arguments:
        nid:
          id: nid
          table: node_field_data
          field: nid
          relationship: field_renwu
          group_type: group
          admin_label: ''
          default_action: default
          exception:
            value: all
            title_enable: false
            title: All
          title_enable: false
          title: ''
          default_argument_type: raw
          default_argument_options:
            index: 1
            use_alias: true
          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: true
          validate:
            type: 'entity:node'
            fail: empty
          validate_options:
            bundles:
              renwu: renwu
            operation: view
            multiple: 0
            access: false
          break_phrase: false
          not: false
          entity_type: node
          entity_field: nid
          plugin_id: node_nid
      defaults:
        arguments: false
        access: false
      menu:
        type: tab
        title: 相关电影
        description: ''
        expanded: false
        parent: ''
        weight: 20
        context: '0'
        menu_name: main
      access:
        type: none
        options: {  }
      tab_options:
        type: none
        title: 相关电影
        description: ''
        weight: 0
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - url.query_args
        - 'user.node_grants:view'
      tags: {  }

 

评论