1

I need to create a view that displays saved content with defined field values to users with specific attributes. I.E.

content form with a field boolean of regulated: [0] unregulated [1] regulated [2] both

the view needs to display this content depending upon the user profile value for whether that user is licensed or not. field value of both needs to display regardless of profile value for licensed.

profile field licensed is a boolean. 0 non-licensed, 1 licensed.

There will be content marked as regulated that needs only to be displayed to licensed users, content that is not regulated that needs only to be displayed to non licensed users, and content that is marked for both that needs to be displayed to both licensed and non-licensed users.

Can this be done in views or do I need to write custom php to accomplish this?

0

You may use the flag module to flag users (it could be an automatic flagging in conjunction with Rules)as regulated, unregulated or both and then filter via views all flagged users. For anonymous users needs some special handling.

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.