...
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
You add the Dynamic View field
You want to have two filters
Show related projects of a multi tagbox
Code Block { "kind": "NestedFilter", "path": "pictureparkNiesen114Releaseprojects.newProject", "filter": { "kind": "TermFilter", "field": "pictureparkNiesen114Releaseprojects.newProject._refId", "term": "{{data.pictureparkNiesen114Releaseprojects.newProject[0]._refId}}" } }
Show nothing if there is no value in the tagbox for projects
Code Block { "kind": "NestedFilter", "path": "pictureparkNiesen114Releaseprojects.newProject", "filter": { "kind": "ExistsFilter", "field": "pictureparkNiesen114Releaseprojects.newProject._refId" } }
For the dynamic view - both filters must be true hence you need an AND filter
Code Block language json { "kind": "AndFilter", "filters": [ { "kind": "NestedFilter", "path": "pictureparkNiesen114Releaseprojects.newProject", "filter": { "kind": "TermFilter", "field": "pictureparkNiesen114Releaseprojects.newProject._refId", "term": "{{data.pictureparkNiesen114Releaseprojects.newProject[0]._refId}}" } }, { "kind": "NestedFilter", "path": "pictureparkNiesen114Releaseprojects.newProject", "filter": { "kind": "ExistsFilter", "field": "pictureparkNiesen114Releaseprojects.newProject._refId" } } ] }
This filter will show all related projects, and at least one project must exist.
Info | |||||
---|---|---|---|---|---|
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:
|
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|