1

I'm Creating a view of a specific content type called "requests (Demande)" , Each request is assigned to a specific user (I have two users : "Salaktarus" and "Zaferro") , what I want to know is how to configure the filter so each user ("Salaktarus" or "Zaferro") sees only the requests which he/she is assigned to.

enter image description here

enter image description here

1 Answer 1

0

Add a relationships based on user who is assigned in the request (if he/she is assigned using a reference field , select that field) , then create a filter based on user (the user who is currently logged in and is viewing the table) , use relation to relate user to nodes which he/she is assigned to.

5
  • the type of the field : COMPTABLI is Entity reference, i have added in relationship : entity reference : field COMPTABLI , and in Contextuel filter : User : Uid , but the problem it show to me only fields who Author currently has created !!! some one can help me?
    – Salaktarus
    Jul 3, 2015 at 11:05
  • How do you assign a user to a request? Jul 3, 2015 at 11:11
  • the administrator it is he who affect requests to users, in the form I add a Select type Reference Entity List, and in that Select List there usernames, Admin selected the desired user, and when the user connect it only sees the demand that has affected him Admin
    – Salaktarus
    Jul 3, 2015 at 11:17
  • maybe this tutorial would help : Using Entity Reference in Views Jul 3, 2015 at 11:23
  • of course I also recommend you to use a content type containing a field user reference , that makes every thing easier. Jul 3, 2015 at 11:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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