I describe my scenario:

the users in their profiles must display a view (views module) with a list of fields that the admin adds each time;

I assume that the admin must add this fields from a specific content type and display this fields with a views.

My question is: how I can associate the fields of this content type to an user and how I can display in the view only the fields of the nodes that the admin have associated to the user that are displaying the view?

Any help is appreciated. Also change my approach if need.

Thank you in advance.

Comments

steeph’s picture

If I understand correctly what you are trying to accomplish, one way of doing it would indeed be to create a content type for these information and use views to display it on the profile page.

Add a user reference field to the new content type. Create a view that displays only this content. Use a filter in the view to reduce it to only nodes that reference the currently viewing user. Create a block in the view and place it to be only displayed on the profile page. To make sure the block is only shown on their own profile, it might be enough to show it only on the path "user", I'm not sure. But you can also do it in views with arguments.

giupenni’s picture

Bingo!
Easier than I thought. :-)
Thank you!

...!