Field concatenation

A forum for Bolt related questions / issues

Field concatenation

Postby gawain » Fri Jan 10, 2014 11:40 am

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?

Gawain
gawain
 
Posts: 6
Joined: Fri Jan 10, 2014 10:06 am

Re: Field concatenation

Postby Bob » Sat Jan 18, 2014 10:38 am

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
        slug:
            type: slug
            uses: [ firstname, middle, lastname ]
Bob
Lead Developer
 
Posts: 1374
Joined: Tue Nov 20, 2007 11:16 pm

Re: Field concatenation

Postby gawain » Tue Jan 21, 2014 11:33 am

Perfect, thank you!
gawain
 
Posts: 6
Joined: Fri Jan 10, 2014 10:06 am


Return to Bolt Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron