---
url: 'https://dxpr.com/zh-hans/hc/documentation/learn-drupal/drupal-glossary/relationship-view'
title: '视图中的关联 | DXPR'
author:
  name: Jurriaan
  url: 'https://dxpr.com/users/jurriaan'
date: '2026-10-24T03:48:15+00:00'
copyright: 'Copyright DXPR. All rights reserved.'
type: article
summary: 'Drupal 视图中的关联用于访问关联实体的附加数据，可将两个或多个表联结起来，构建更复杂的查询。关联用于将关联实体的字段添加到视图，并按关联实体的字段筛选视图。例如，如果您有一个内容节点视图，可以添加与用户表的关联，以获取作者姓名或其他用户字段。您还可以使用关联，按作者姓名或其他用户字段筛选视图。关联在视图的“高级”部分定义。您可以为视图添加多个关联，每个关联都可以有各自的设置。例如，您可以指定关联是必需还是可选，以及是否用于筛选视图。关联是创建复杂视图的强大工具，对于展示关联实体数据的视图不可或缺。关联也是视图 API 的关键组成部分，开发者可通过它创建自定义视图。'
tags:
  - Drupal-woordenlijst
image: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
published: true
og:
  site_name: DXPR
  updated_time: '2026-10-24T03:48:15+0000'
  'image:alt': 'DXPR, powered by Drupal: AI-powered Drupal for marketers.'
schema:
  '@context': 'https://schema.org'
  '@graph':
    -
      mainEntity: {  }
    -
      '@type': TechArticle
      headline: 视图中的关联
      description: 'Drupal 视图中的关联用于访问关联实体的附加数据，可将两个或多个表联结起来，构建更复杂的查询。关联用于将关联实体的字段添加到视图，并按关联实体的字段筛选视图。例如，如果您有一个内容节点视图，可以添加与用户表的关联，以获取作者姓名或其他用户字段。您还可以使用关联，按作者姓名或其他用户字段筛选视图。关联在视图的“高级”部分定义。您可以为视图添加多个关联，每个关联都可以有各自的设置。例如，您可以指定关联是必需还是可选，以及是否用于筛选视图。关联是创建复杂视图的强大工具，对于展示关联实体数据的视图不可或缺。关联也是视图 API 的关键组成部分，开发者可通过它创建自定义视图。'
      image:
        '@type': ImageObject
        url: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
        width: '1200'
        height: '630'
      datePublished: '2026-10-24T03:48:15+0000'
      dateModified: '2026-10-24T03:48:15+0000'
      author:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      mainEntityOfPage: 'https://dxpr.com/zh-hans/hc/documentation/learn-drupal/drupal-glossary/relationship-view'
      articleSection: Drupal-woordenlijst
    -
      '@type': WebPage
      '@id': 'https://dxpr.com/zh-hans/hc/documentation/learn-drupal/drupal-glossary/relationship-view'
      description: 'Drupal 视图中的关联用于访问关联实体的附加数据，可将两个或多个表联结起来，构建更复杂的查询。关联用于将关联实体的字段添加到视图，并按关联实体的字段筛选视图。例如，如果您有一个内容节点视图，可以添加与用户表的关联，以获取作者姓名或其他用户字段。您还可以使用关联，按作者姓名或其他用户字段筛选视图。关联在视图的“高级”部分定义。您可以为视图添加多个关联，每个关联都可以有各自的设置。例如，您可以指定关联是必需还是可选，以及是否用于筛选视图。关联是创建复杂视图的强大工具，对于展示关联实体数据的视图不可或缺。关联也是视图 API 的关键组成部分，开发者可通过它创建自定义视图。'
      breadcrumb:
        '@type': BreadcrumbList
        itemListElement:
          -
            '@type': ListItem
            position: 1
            name: 首页
            item: 'https://dxpr.com/zh-hans'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
      inLanguage: zh-hans
---
[Help Center](/zh-hans/node/75)/[Documentation](/zh-hans/hc/documentation) /[Learn Drupal](/hc/documentation/learn-drupal) /[Drupal-woordenlijst](/hc/documentation/learn-drupal/drupal-woordenlijst) # 视图中的关联.

 Learn DrupalDrupal-woordenlijst

   ## In this guide

Drupal 视图中的关联用于访问关联实体的附加数据，可将两个或多个表联结起来，构建更复杂的查询。关联用于将关联实体的字段添加到视图，并按关联实体的字段筛选视图。

例如，如果您有一个内容节点视图，可以添加与用户表的关联，以获取作者姓名或其他用户字段。您还可以使用关联，按作者姓名或其他用户字段筛选视图。

关联在视图的“高级”部分定义。您可以为视图添加多个关联，每个关联都可以有各自的设置。例如，您可以指定关联是必需还是可选，以及是否用于筛选视图。

关联是创建复杂视图的强大工具，对于展示关联实体数据的视图不可或缺。关联也是视图 API 的关键组成部分，开发者可通过它创建自定义视图。