Closed (fixed)
Project:
Indiana University Paragraphs
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2017 at 16:30 UTC
Updated:
27 Dec 2017 at 00:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jwilson3Hi vaccinemedia,
Does the patch here help? #2854199: Color Boxes Widget default values don't work
Comment #3
vaccinemedia commentedI'm afraid not jwilson3. I have the following patches:
Comment #4
jwilson3Ok thanks for checking that.
I've not had this problem on the site we're building. I'll need to start from scratch and try on a clean install myself to confirm.
Comment #5
vaccinemedia commentedOK thanks. For completeness her's the full composer.json
Comment #6
jwilson3Running your composer.json uncovered a couple things, but mainly that you're using color_field 1.0.0, but the recommended install on the project page is now 8.x-2.0-rc2, and this module requires the 2.0 version at the lowest.
What if you try the following:
I'll update the documentation to state that color_field: 2.0 is required along with the patch above.
Comment #7
jwilson3Comment #9
jwilson3Marking this fixed. Please reopen if the above doesn't work. Thanks for the bug report!
I should also let you know that I'm probably going to remove the color_field module integration before a full release. This piece was part of proof of concept work that ended up not suiting the needs, because users shouldn't be allow to choose so many background colors for their sections.
According to the IU Style Guide users can only choose: no background, image background, gray background, or "secondary background" which will usually default to either brown (mahogany) or red (crimson). This needs a bit of a complicated refactor so I'm hesitating to make the change. When I do change this though, I will probably not create an upgrade path for you, because we're still too early in development.
Hope you do find this work useful.
Best,
James
Comment #10
jwilson3Fwiw, I recommend you also run the following commands to reinstall both this module and the theme. I've just deployed a couple fixes to both that should make the installation run more smoothly.
Comment #11
jwilson3Please note:
Because I've added some patches to the composer.json file in the IU Paragraphs module, if you do not remove these same patches from your composer.json file in your project root, you will get the following error:
https://github.com/cweagans/composer-patches/issues/123
Comment #12
jwilson3Comment #13
jwilson3vaccinemedia: I've just pushed the fix to completely remove the Color Field module dependency. This requires updating both IU_Paragraphs and IU Theme and manually removing the old Background Color field with machine name (iu_section_bgcolor) on the 'Section' Paragraph Type.
See: #2929965: Replace background color field with basic color selector