The official guidance for that would be to put the preprocessing in template.php within your_theme_preprocess_node() and put the logic there to add to or change the variables, but you can do in...
Posted23 hours 52 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
Perfect. So if I work with the .tpl files for e.g. all nodes of type “books”, I can easily do something like this via PHP (nobody needs twig anyway): If field 'user' = ‘yorkshirepudding’, then...
Comments
Using modules
Internationalization > String translation,
and Localization client > if you like to make a translation easier.