Hi
I am struggling with something which i guess is simple - but could not find a straight solution - hence this post.
This is my scenario (i run a institute):
1. I have a CCK content type in which the faculty enters the observation of each student
2. Each student's (drupal) role is defined by the program he is sighned up for say progA, progB and ProgC
3. Further within each program (or role) each child is in a different class or group - for this i have created a profile field called student_group - say groupX and GroupY
so what i want is that when faculty want to enter observation they should be able to "choose" the student's name
first filter by program name - say choose progA, then filter the list by group name - say, GroupX
so they get user list (of students) only in ProgA & GroupX and select the right name to enter observations.
Once they enter the observation - the student sees his observations (using views)
How do i get the userlist filtered by these two levels - first by role and then by student_group.
realise also that one student could be in more than one program (through within a program only in one group). Which means that in the user profile two roles are selected for such a student.
thanks in advance to help me set this up.
Comments
Comment #1
nlindley commentedI believe the common solution to using views with users is to use the module Usernode. I have done this for one site I have running Drupal 5, but it does not solve your problem of wanting to filter by role as well. Since users are not nodes in the current Drupal system, views doesn't handle them like you would expect with other content types.
Maybe somebody else has experience with filtering by roles in the manner you desire. If I think of something else, I'll let you know.
Comment #2
ratnesh aarohi commentedokay will explore user node
though my need is - when we are creating content - using the new cck node - at that time to get userlist by roles and groups - to be bale to enter the right student's name.
Comment #3
ratnesh aarohi commentedStill stuck
I used the usernode to create a view of users.
and insert that as a nodereference field in cck BUT
i am not able to activite filters within cck - with the result either i see all the users or i if i set a filter in views - then i get only that option in cck.
So how do i get the filters i use in views to appear in cck nodereference
ratnesh
Comment #4
dopry commentedUse the views mode for the nodereference field. It should be on the field options for the content type.
Comment #5
jeroenf1973 commentedany luck on this?
I need something like this in my 6.x project....
(i want to create an "user select lists"; the initial list is the result of an already filtered by role user list)
hope you can help me out.
Kind regards