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...
Posted8 hours 8 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...
Yes, that is one way to look at it. Some fields have more configurability than others. Yes, active config is the place to look. Within each field instance (i.e. the config of that field on that...
Posted8 hours 36 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
Dear ysp,
a thousand thanks! You made my evening. So these display modes in the backend are just a GUI for the .tpl files? The scales have fallen from my eyes.
EDIT: But where are my...
Comments
Using modules
Internationalization > String translation,
and Localization client > if you like to make a translation easier.