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.
I have a name pattern like this:
%1 %2, %3
For example:
John Doe, CEO
But all fields are optional, so I might end up with:
John Doe,
In this case I want to omit the comma, if %3 is empty.
Something like:
%1 %2{if !empty(%3)}, {/if}%3
Is this possible with RealName module somehow?
Comments
Comment #1
Actron CreditAttribution: Actron commentedExecution of PHP code would solve this problem:
#871492: Allow PHP execution in the name pattern
Comment #2
hass CreditAttribution: hass commented