Dynamic View: Show Items Where a Project Exists or Where it Matches the Assigned One

This solution shows how to configure a filter in the field “Dynamic View” based on a multi-tagbox. The field dynamic view will show all content when nothing is found.

This solution shows how to show related projects or without related projects don’t show the dynamic view field at all (if no projects are found).

Instructions

  1. You add the Dynamic View field

  2. You want to have two filters

    1. Show related projects of a multi tagbox

      { "kind": "NestedFilter", "path": "projects.newProject", "filter": { "kind": "TermFilter", "field": "projects.newProject._refId", "term": "{{data.projects.newProject[0]._refId}}" } }
    2. Show nothing if there is no value in the tagbox for projects

      { "kind": "NestedFilter", "path": "projects.newProject", "filter": { "kind": "ExistsFilter", "field": "projects.newProject._refId" } }
  3. For the dynamic view - both filters must be true hence you need an AND filter

    { "kind": "AndFilter", "filters": [ { "kind": "NestedFilter", "path": "projects.newProject", "filter": { "kind": "TermFilter", "field": "projects.newProject._refId", "term": "{{data.projects.newProject[0]._refId}}" } }, { "kind": "NestedFilter", "path": "projects.newProject", "filter": { "kind": "ExistsFilter", "field": "projects.newProject._refId" } } ] }
    1. This filter will show all related projects, and at least one project must exist.

This filter will always include the original content item (the base). If you want to remove the original, you exclude the id from the dynamic view - you can just add this to the AND filter:

FotoWare Switzerland AG - CH-5033 Buchs - Switzerland
https://picturepark.com - support@picturepark.com
© 2023 FotoWare Switzerland AG