0

I've built a system for Schools which has a teacher/student hierarchy based on a custom field, I want a teacher to be able to login and view which of their students has registered with the system.

It basically needs to check the current logged in users custom member field "School code" and output any people from member group 5 that match the same "School code".

I'd like to know if this is possible with {exp:member:custom_profile_data}

I only seem to be able to output the current users information, is it possible to output all user's information or do I need to use something like Zoo Visitor?

Thanks!

7
  • 1
    In your case I 'd suggest you to use Zoo Visitor which store member data in channel entry form. Also it would be better to use Relationship between School and Students. By doing so school as well as students info can be fetched easily. Feb 26 '14 at 9:31
  • Thanks Bhashkar, so is there no way to output members information from the base expressionengine install?
    – Nick
    Feb 26 '14 at 9:34
  • 1
    you can populate member's custom profile data with native tag of member module but what if you are relating teachers/students and schools. So using Zoo visitor seems me better. Please share if you other approach. I 'd be glad to share my thoughts. Feb 26 '14 at 9:42
  • We have a schools channel where an admin sets up a school, in this we set school_code. The admin also sets up the teacher account where the custom member field is populated with the same school_code. When a student registers they have to provide this code which then associates them with the school. Each peice of content can be related to one school or all schools (a relationship field to school channel). We then have an if else before each exp:entries tag to only output entries that are assigned to all schools or their specific school which is defined by their custom member field.
    – Nick
    Feb 26 '14 at 9:46
  • This is already setup, but the issue comes when we want to output students details to the teacher with the same School code, as I can't work out how to expose other member details with the default expressionengine tags, is it even possible?
    – Nick
    Feb 26 '14 at 9:47

Your Answer

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

Browse other questions tagged or ask your own question.