0

I have a Zoo Visitor (ZV) channel with different member groups (teachers, students). Within the channel, I have a playa field pulling in the ZV teacher entries. When students register they’ll select one teacher via the playa field.

On the individual teacher pages, I need to show all of the students who’ve selected that specific teacher. So, I'd need to pull all of the student entries that share the current logged in teacher member.

Would this be done with the coparents module? If not, what's the correct playa module to be used with zoo visitor?

0

Have you looked at this thread?

Sounds like you need to do a reverse-relationship lookup with the exp:playa:parents tag:

Getting reverse related entries via Playa

5
  • Hey Jae, thanks for the response. I did see that thread and tried using in my template with no success. I guess I don't understand the proper Zoo Visitor parameter for the parents tag to do its magic.
    – g-nice
    Sep 23 '13 at 5:07
  • Since Zoo Visitor just acts as exp:channel:entries tag, there should not be an issue with ZV. What you may want to do is move the Playa code as an included template and pass the entry_id of the profile entry: {...ZV tag...} {embed="includes/playa_tag_template" entry_id="{entry_id}"} {/....ZV tag...} And have the reverse lookup inside the playa_tag_template. Sep 23 '13 at 17:15
  • Jae, you're my hero. I was missing the entry_id thread :/. {exp:zoo_visitor:details member_id="{zoo_visitor_id}"}{embed="_includes/.embed-playa" entry_id="{entry_id}"}{/exp:zoo_visitor:details}
    – g-nice
    Sep 24 '13 at 6:54
  • Glad you got that going! Sep 24 '13 at 20:54
  • I actually noticed an issue today with the students being shown. All of the students who've selected any teacher are showing up, instead of only those students who've selected the teacher currently logged. I think it's the same idea here.
    – g-nice
    Sep 25 '13 at 1:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.