0

I need to display name, role, photo of current user. I'm use views, in Advanced settings add Contextual filters select Content: Author uid and in settings of it select Provide default value ,in type selectbox choose User ID from logged in user. But in fields i haven't field 'user:name'. If i create relationship content : author , user name will be displayed, but only for users, that published node. At the end, i want see like this

Hello, SmithJN
Role: Authorised user
Photo: [photo]
  • When you create the view, at the very first screen, you have the option to select the entity type on which you want to create the view. Perhaps you want to create a view of type User? – J. Reynolds Feb 4 '16 at 11:40
  • Wah! i don't see this. try to do. – Konstantin Mokhov Feb 4 '16 at 11:45
2

When you create the view, at the very first screen, you have the option to select the entity type on which you want to create the view. (thank J.Reynolds)

Then in Fields add Field Name, Role, Image In Fileter Criteria add filter User : current

It's all !

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.