Problem with condition on a grid field #6122
Unanswered
jensolafkoch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a collection with lawyers and another one with seminars. Seminars used to have a field lawyer with the lawyer id:
lawyer: id
Until now I looped through the seminars and then checked for the slug of a lawyer (passed in the the url) in to show them:
Now I have to change the lawyer field in seminars into an array of lawyers (-> seminars can be held by more than one person):
I didn't find any solution to write the same if condition because I cannot access the lawyer values like
slug
via the id.I guess I miss something trivial here???
Many thanks for any help!!
UPDATE:
A colleague of mine also looked into it, we also tried to use the new parser and runtime variables, all to no avail.
Question still is: How to write a condition for a collection tag which compares with data in an array field like:
Is this possible at all? Or should we maybe settle for a custom scope?
Beta Was this translation helpful? Give feedback.
All reactions