I have a view that displays, let's say, videos that each user has added. This view is shown in their profile. I'd like to use fields from their profile as the title of the view. Specifically, fields containing their first and last name. So for instance, I'd like the title to be "Ashton Kutcher's Videos."

I know that you can use arguments to alter the title of a view, but I can't seem to find a way to use the content of fields.

Additionally, because of a silly decision when building the site, I did not require users to enter their names. Therefore, sometimes I will need to display their username instead of their first and last names, conditionally.

Any suggestions?

  • 2
    For the actual username problems you mention, There's a Module for That: drupal.org/project/realname – geerlingguy Feb 9 '13 at 22:08
  • So Realname actually replaces the username anywhere that it would appear? That's cool. I didn't realize that it functioned that way. I thought that it just combined other specified name fields into a single one that can be used wherever any other field could be used. I didn't see much use for it. – Mrweiner Feb 9 '13 at 22:11
  • Yep! And it allows a lot of customization, too, as does Drupal's hook_username_alter() - api.drupal.org/api/drupal/modules%21system%21system.api.php/… – geerlingguy Feb 9 '13 at 22:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.