evoWeb / sf_register

Sophisticated TYPO3 Frontend user registration
GNU General Public License v2.0
13 stars 45 forks source link

Generate "name" from "first_name" and "last_name" #80

Closed UweJakobs closed 5 years ago

UweJakobs commented 5 years ago

Is there a possibility to generate Field-Contents out of the value of other fields? Like "name" from a concat of "first_name" and "last_name"? Didn't find it so far.

garbast commented 5 years ago

No this is not part of the feuser model. If you need that, you have to integrate a SignalSlot and use

$user->setName($user->getFristName() . ' ' . $user->getLastName())

Beside i would not advise to use it like that. The combined field is more or less a simplification if you want to use only one field to both values.

Why do you want to use name instead of first_name last_name?

UweJakobs commented 5 years ago

I totally agree with you - this was a customers request as he had the possibility to do so with his former "femanager"-Extension . To be honest, I think it was only because of he was used to order the FeUsers in Backend by hitting the "name"-Field ;)

garbast commented 5 years ago

For this kind of "special needs" the SignalSlots are provided in every action before save or update in the repository.