I'm using D7 and I have a custom content type (Client) and I have a custom select list field for the User entity displayed in a custom block.

I have a custom display layout for the Client content type, wherein all fields are displayed in different blocks using Display Suite. The user's name is displayed only when the user field is enabled in the node main content, else it remains blank.

How do I display the username in the block without the need to keep the field enabled in another part of the node view?

1 Answer 1


try with arguments or use views module and configure your block view CONTEXTUAL FILTERS

  • I am using the contextual filters. It displays other fields related to the node, but not the Username. Apr 13, 2017 at 10:26
  • what's the relation between node and user name ? Apr 13, 2017 at 10:31
  • The username is the user who is the point of contact for the client. Each Client has a separate point of contact, User Apr 13, 2017 at 12:20

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.