Skip to main content
added 4 characters in body
Source Link
Brad Bell
  • 67.6k
  • 6
  • 75
  • 145

I can't quite figure out how to make this work:

Say I have two sections, Actors and Movies.

In my Actor section, I've got a Super Table field (myFilmography) with an Entries column to choose a single entry from the Movies section.

On a given actor's page, I'd like to output the contents of the Super Table, excluding rows containing a match for a given movie(s).

I've tried filtering on the id of the movie's entry, like this, but it doesn't seem to work:

{% set myMoviesExceptJaws = entry.myFilmography.movies('id NOT 874').all() %}

{% set myMoviesExceptJaws = entry.myFilmography.movies('id NOT 874').all() %}

How do I filter out rows containing specific entries?

I can't quite figure out how to make this work:

Say I have two sections, Actors and Movies.

In my Actor section, I've got a Super Table field (myFilmography) with an Entries column to choose a single entry from the Movies section.

On a given actor's page, I'd like to output the contents of the Super Table, excluding rows containing a match for a given movie(s).

I've tried filtering on the id of the movie's entry, like this, but it doesn't seem to work:

{% set myMoviesExceptJaws = entry.myFilmography.movies('id NOT 874').all() %}

How do I filter out rows containing specific entries?

I can't quite figure out how to make this work:

Say I have two sections, Actors and Movies.

In my Actor section, I've got a Super Table field (myFilmography) with an Entries column to choose a single entry from the Movies section.

On a given actor's page, I'd like to output the contents of the Super Table, excluding rows containing a match for a given movie(s).

I've tried filtering on the id of the movie's entry, like this, but it doesn't seem to work:

{% set myMoviesExceptJaws = entry.myFilmography.movies('id NOT 874').all() %}

How do I filter out rows containing specific entries?

Source Link
mierla
  • 43
  • 1
  • 8

How to exclude Super Table rows matching given entry

I can't quite figure out how to make this work:

Say I have two sections, Actors and Movies.

In my Actor section, I've got a Super Table field (myFilmography) with an Entries column to choose a single entry from the Movies section.

On a given actor's page, I'd like to output the contents of the Super Table, excluding rows containing a match for a given movie(s).

I've tried filtering on the id of the movie's entry, like this, but it doesn't seem to work:

{% set myMoviesExceptJaws = entry.myFilmography.movies('id NOT 874').all() %}

How do I filter out rows containing specific entries?