Closed willguv closed 1 year ago
I thought what we intended to do was for campaigns to implement a way for a theme to declare what colourways it supports and then @Adnan-cds had a technique that added the correct classes into the body class.
I am linking to the pull request @andybroomfield mentioned above.
@cjstevens78 and @stephen-cox - can you have a chat about this? Thanks
This wasn't implemented in the Campaigns module because there was the idea that the theme could announce the colourway options it supported. The issue (without much detail) is here: https://github.com/localgovdrupal/localgov_campaigns/issues/3
To add the colourways as they stand will be a matter of creating a localgov_campaigns_preprocess_html
hook in the Campaigns module and insert the field values into variable that can used in the HTML Twig template. Similar to what Andy did in the code above.
This is more an issue with the Campaigns module, so moving the issue there.
Closing as this module is deprecated
BLOCKED needs team discussion with @stephen-cox @andybroomfield @Adnan-cds @cjstevens78
The Campaign overview page isn't using the values of the two colorway fields. But it works fine in the Brighton site where classes are added to the "body" field based on the values of the colorway fields. Andy Broomfield has provided us the relevant code. We need to add this to our codebase: