Page 1 of 1

Field concatenation

PostPosted: Fri Jan 10, 2014 11:40 am
by gawain
I'm not sure this is possible but it doesn't hurt to ask.

Use case is, 3 fields for input. One each with a persons first, middle initial and last names. Required outcome is to concatenate these fields together (first-mi-last) for the pages slug, and (First M Last) for the pages title, calculated on content save.

Can this be done with the current code, if not is it possible with an extension?


Re: Field concatenation

PostPosted: Sat Jan 18, 2014 10:38 am
by Bob
You can't do this for the title. (you'd have to do that in the template. But, you _can_ for the slug:

Code: Select all
            type: slug
            uses: [ firstname, middle, lastname ]

Re: Field concatenation

PostPosted: Tue Jan 21, 2014 11:33 am
by gawain
Perfect, thank you!