Making calculations with variables in prepared emails

I want to make calculations using the variable {$articleId} and assign the result of these calculations to a new variable (for example: $newarticleId) and then put it in some prepared email templates. Where should I define (which file, and which place) the new variable to be correctly displayed in a sent email. I have already put the variable {$articleId} in the Submission Acknowledgement template and this works, however I need to modify its value to be conformed to our numbering. I have only limited skills in php.

AS

Hi @ania,

The {$articleId} variable is assigned to templates in ArticleMailTemplate.inc.php – you could assign another variable there based on the article ID. However, I worry that the approach you describe might lead to confusion, as it would be easy to overlook a case.

Regards,
Alec Smecher
Public Knowledge Project Team