One feature/improvement I'd like to suggest is the availability/handling of variables in email templates.
For example, we prefer to have our salutation using the family name only (no prename), so I use {$authorLastName} after modifying the assignParams array via:
- Code: Select all
'authorLastName' => $user->getLastName()
However, this means I must modify OJS everywhere the $mail setup occurs. It would be nice if the entire user profile was available consistently in every template. Then, I'd simply write my templates without wondering which user data was available to me.
Perhaps this can be done in the mail constructor (a second constructor with additional arguments)?
(I can add this to my own "things I never seem to have time for with OJS" todo list, such as my plugins and other modifications.
Thanks.
