It looks like that field must be of type "number" and be limited to one value like you see in the image above. The "number of values" fieldset should be on the content type's manage fields page, e.g. "admin/structure/types/manage/<content-type>/fields/<field-of-type-mailchimp-subscription>".
I would check the manage field page to make sure it is set to one for the number of values allowed.
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...
Posted1 day 3 hours 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
The specific error you are seeing comes from https://github.com/backdrop-contrib/mailchimp/blob/1b970f66c112e88d2ccfe....
It looks like that field must be of type "number" and be limited to one value like you see in the image above. The "number of values" fieldset should be on the content type's manage fields page, e.g. "admin/structure/types/manage/<content-type>/fields/<field-of-type-mailchimp-subscription>".
I would check the manage field page to make sure it is set to one for the number of values allowed.