Giter VIP home page Giter VIP logo

drupal10_views_field_view's Introduction

This module allows you to embed a View as a field in another View.

The View in the view-field can accept argument values from other fields of the parent View, using tokens.

Here's how:

1. Before you can add a view-field to a "parent" view, you must create a "child" view.
2. Add arguments to that child view. The parent view will be passing argument values to
   the child so that the child knows what to display. No other settings are necessary,
   but validators and "argument not present" could be set.
3. Create a "parent" view, if not already existing.
4. Add child view (Global:View field). The field must be toward the bottom of the field list,
   or at least underneath the fields that are going to be used as arguments.
   (E.g., "node id" might be used as an match between the parent and child views,
   so put the "node id" field before your Global:View field in the list.)
5. Select which View and Display to use for the child data (will require doing this in 2 steps
   - the field must be saved before the display selection is available).
6. Find which tokens are available by looking at the "Replacement patterns" list right below the Arguments setting.
   Type the token replacements, in order, separated by a comma, as the arguments for that view field.
   These values will be passed to the child. Make sure each field you are passing as an argument is completely clean,
   as in: no label, no formatting, nothing that would pass into the argument other than the desired text or number.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.