In content type = Person, I have these fields:
- First Name [node:field_person_first_name]
- Middle Name [node:field_person_middle_name]
- Last Name [node:field_person_last_name]
- Suffix [node:field_person_suffix]
In views, I have successfully concatenated the full name by adding Global: Custom text and using Replacement Patterns to build the fields. However, this is time consuming.
These fields will always be put together in both of these two ways:
- full name, last first
- full name, first first
Is there a way that I can create two computed fields for these which I could store in the content type? If so, how do I do this? Note: I don't want to modify the original data.
Update:
I have Entity Token and Token already. I loaded Token Filter. I found, but have not yet loaded Token Field.
Token Field suggests that it might be nice if one could define a field "without needing to know any PHP" but the samples on this page indicate otherwise. My HTML knowledge is slight and PHP is non-existent.
I did follow a training video which gave me access to some tokens when creating a new field in Person, but these did not include tokens for fields within the Person content type.
Will this be possible (without PHP) if I install Token Field?
Update 2:
The site simplytest.me is excellent. Token Field loaded. Unfortunately in a real test, I'm getting "Cath [node:field_person_middle_name] Staincliffe [node:field_person_suffix]" because author Cath Staincliffe doesn't have a middle name or suffix. Do you know how to instruct the module to only use a name if one exists?