?
avatar micker
micker
4 Mar 2020

i am not sure about this
but
1 when we use color schema field nothing was adapt in other color field
2 the other field aren't a color field type
2020-03-04_08h37_49

avatar micker micker - open - 4 Mar 2020
avatar joomla-cms-bot joomla-cms-bot - change - 4 Mar 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Mar 2020
avatar brianteeman
brianteeman - comment - 5 Mar 2020

thats a bug - they should be color fields

avatar micker
micker - comment - 5 Mar 2020

ok happy to find it

avatar N6REJ
N6REJ - comment - 6 Mar 2020

color field is not being processed properly... I'm looking into it.

avatar N6REJ
N6REJ - comment - 6 Mar 2020

it appears that either color form field is severely broken or it's been severely changed and there is no documentation on how it functions now.
perhaps @C-Lodder or @wilsonge can shed some light on this.
while "simple" control type functions rudimentarily its the only one other then hue that does.

avatar C-Lodder
C-Lodder - comment - 6 Mar 2020

@N6REJ The CSS file jquery.minicolors.css isn't being loaded which is why the colour fields don't have the square swatch to open the colour pallette. Not sure why if I'm honest. The asset is calling the minicolors dependency correctly from what I can see.

avatar C-Lodder
C-Lodder - comment - 6 Mar 2020

It works if you use HTMLHelper as per below:

HTMLHelper::_('stylesheet', 'vendor/minicolors/jquery.minicolors.css', ['version' => 'auto', 'relative' => true]);
HTMLHelper::_('script', 'vendor/minicolors/jquery.minicolors.min.js', ['version' => 'auto', 'relative' => true]);
HTMLHelper::_('script', 'system/fields/color-field-adv-init.min.js', ['version' => 'auto', 'relative' => true]);

so it could potentially be a bug within the web asset manager

avatar N6REJ
N6REJ - comment - 7 Mar 2020

@C-Lodder any documentation on how the field functions now?

avatar Fedik
Fedik - comment - 7 Mar 2020

there was changes for it #27884
are you sure you run npm install?

avatar Fedik
Fedik - comment - 7 Mar 2020

The CSS file jquery.minicolors.css isn't being loaded which is why the colour fields don't have the square swatch to open the colour pallette.

ah well, that can be bug with #27884,
I will check later

avatar N6REJ
N6REJ - comment - 7 Mar 2020

there was changes for it #27884
are you sure you run npm install?

dozens of times ?

avatar N6REJ
N6REJ - comment - 7 Mar 2020

https://docs.joomla.org/J4.x:Web_Assets

I meant in how the color field is used now. It's not at all like the docs state.

avatar C-Lodder
C-Lodder - comment - 7 Mar 2020

Oh sorry the colour field. I'm not sure if there are docs for all types of colour fields

avatar Fedik
Fedik - comment - 8 Mar 2020

please test #28271

avatar Quy Quy - change - 8 Mar 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-03-08 14:51:05
Closed_By Quy
avatar Quy Quy - close - 8 Mar 2020

Add a Comment

Login with GitHub to post a comment