Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi!
I want the title to grab the real-name of a referenced user. Token only provides the username or uid. How do I access the realname of the user, that is stored in a profile-field. There must be some php-code to somehow load the referenced user and use the profile field for the auto-title.
Thank you for any help!
Comments
Comment #1
Utkarsh_Mishra CreditAttribution: Utkarsh_Mishra at OpenSense Labs for DrupalFit commented[current-user:name] gives the username of the current user
Comment #2
gaurav.kapoor CreditAttribution: gaurav.kapoor commented