? Failure
Related to # 14353
Referenced as Related to: # 14353 # 14837 # 14843

User tests: Successful: Unsuccessful:

avatar jjaracz
jjaracz
9 Mar 2017

Pull Request for Issue #14353 .

Summary of Changes

Adds buttons to change between hex, rgb, rgba.

Testing Instructions

Add to protostar templateDetails.xml code below to the xml extension -> config -> fields and go to settings of that template and then to the advanced tab. There should be new extended color pickers.

<field name="Color1" type="color" label="Color + changeformat" changeformat="true" />
<field name="Color2" type="color" label="Color + keywords" format="hex" keywords="transparent,inherit,initial" />
<field name="Color3" type="color" label="Color + format" format="rgb" />
<field name="Color4" type="color" label="Color" />

keywords - if you add this attribute to field then you can type to the input keywords that you specify and save it.
format - you can choose color only from specified format of color.
changeformat - it enables you to save color in 3 formats rgb, hex and rgba

Documentation Changes Required

Yes on the page https://docs.joomla.org/Color_form_field_type

  • boolean attribute changeformat="" is to show buttons to change format between hex, rgb, rgba.
  • format and keywords attribute from #10129

zaznaczenie_134

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar jjaracz jjaracz - open - 9 Mar 2017
avatar jjaracz jjaracz - change - 9 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2017
Category Layout Libraries JavaScript
avatar jjaracz jjaracz - change - 9 Mar 2017
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 9 Mar 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Mar 2017

I have tested this item successfully on 5e56bc4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14427.

avatar Bakual
Bakual - comment - 9 Mar 2017

Are we sure the other formats work in all cases where that field is used?
Otherwise it needs to be opt in based on attributes in the XML definition.

avatar ciar4n
ciar4n - comment - 9 Mar 2017

There is an existing option with the color field to set to an RGBA format... #10129. How would this PR effect that?

avatar jjaracz
jjaracz - comment - 9 Mar 2017

@ciar4n I just extend that with buttons to change between formats and if you want to you could specify one format without buttons like on the picture in description

@Bakual I think It isn't necessary, because i recognize the format from value. Unless you mean to specify one format without change to others ?

avatar jjaracz jjaracz - change - 9 Mar 2017
The description was changed
avatar jjaracz jjaracz - edited - 9 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2017
Category Layout Libraries JavaScript Repository Administration com_admin SQL Postgresql MS SQL com_categories com_contact com_content com_fields
avatar N6REJ
N6REJ - comment - 9 Mar 2017

the reason for the format="" was to allow for transparency! It's important to have the ability to have color: transparent" look @ previous pr's regarding this issue.

avatar N6REJ
N6REJ - comment - 9 Mar 2017

@brianteeman something seriously wrong with this pr.. when I look @ the first 2 changes in the commit they are about files that are not part of this pr.

avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2017
Category Repository Administration com_admin SQL Postgresql MS SQL com_categories com_contact com_content com_fields Layout Libraries JavaScript
avatar jjaracz
jjaracz - comment - 9 Mar 2017

@N6REJ attributes keywords and format still work :)

about files you mention, it was my mistake, sorry, now it should be fine :)

avatar jjaracz jjaracz - change - 9 Mar 2017
The description was changed
avatar jjaracz jjaracz - edited - 9 Mar 2017
avatar jjaracz jjaracz - change - 9 Mar 2017
The description was changed
avatar jjaracz jjaracz - edited - 9 Mar 2017
avatar jjaracz
jjaracz - comment - 9 Mar 2017

@C-Lodder @yvesh Thank you ?

avatar Bakual
Bakual - comment - 9 Mar 2017

I think It isn't necessary, because i recognize the format from value. Unless you mean to specify one format without change to others ?

@jjaracz The reason I ask isn't about the part where the JS reads the value. I fully expect that to be able to deal with the various formats. My concern is the other direction, the one receiving the value set. If the extension expects a HEX value and you pass a RGB one, it may break the extension.
I think you will have to default to HEX only and the extension developer can specify additional supported formats in the XML definition.

avatar brianteeman
brianteeman - comment - 9 Mar 2017

@N6REJ no point tagging me I can't do anything

avatar jjaracz
jjaracz - comment - 9 Mar 2017

@Bakual You're right, I will try to do this ?

avatar jjaracz jjaracz - change - 9 Mar 2017
The description was changed
avatar jjaracz jjaracz - edited - 9 Mar 2017
avatar jjaracz jjaracz - change - 10 Mar 2017
The description was changed
avatar jjaracz jjaracz - edited - 10 Mar 2017
avatar jjaracz jjaracz - change - 10 Mar 2017
The description was changed
avatar jjaracz jjaracz - edited - 10 Mar 2017
avatar jjaracz jjaracz - change - 10 Mar 2017
The description was changed
avatar jjaracz jjaracz - edited - 10 Mar 2017
avatar jjaracz jjaracz - change - 10 Mar 2017
The description was changed
avatar jjaracz jjaracz - edited - 10 Mar 2017
avatar N6REJ
N6REJ - comment - 10 Mar 2017
avatar jjaracz
jjaracz - comment - 10 Mar 2017

@N6REJ No (for the secound question), because further I can't check letters in a blank string ? btw it doesn't make much sense to add # to a blank string

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Apr 2017
Status Pending Confirmed
Rel_Number 0 14427
Relation Type Related to
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Apr 2017
Rel_Number 14427 0
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Apr 2017
Priority Medium Low
avatar laoneo
laoneo - comment - 13 Jun 2017

Can you fix the merge conflicts please, then we should do another round of testing.

avatar C-Lodder
C-Lodder - comment - 13 Jun 2017

Will also need to be tested on sub form fields. Not sure it will work as you haven't delegated the click event

avatar joomla-cms-bot joomla-cms-bot - change - 14 Jun 2017
Category Layout Libraries JavaScript Layout Libraries JavaScript Front End Templates (site)
avatar jjaracz
jjaracz - comment - 14 Jun 2017

@laoneo
@C-Lodder
Now should be ok :)

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 15 Jun 2017

@jjaracz can you please update your Test Instructions and first Comment like changeformat="true" is now in templateDetails.xml and Screen show:
bildschirmfoto 2017-06-15 um 16 03 57

avatar jjaracz jjaracz - change - 16 Jun 2017
The description was changed
avatar jjaracz jjaracz - edited - 16 Jun 2017
avatar jjaracz
jjaracz - comment - 17 Jun 2017

@franz-wohlkoenig
updated ;)

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 Jun 2017

@jjaracz didn't get Fields like you show in first Comment. What i get is:
27185109-9693622c-51e4-11e7-8dc8-391ac55fb009
by adding changeformat="true in Protostar templateDetails.xml in field of type colors.

avatar jjaracz
jjaracz - comment - 18 Jun 2017

@franz-wohlkoenig

<field type="color" ... keywords="transparent,inherit,initial" />
<field type="color" ... format="rgb" />

This should work :)

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jun 2017

@jjaracz can you please update your Test Instructions so willing Testers without Dev.-Knowledge can test easy?

avatar jjaracz jjaracz - change - 19 Jun 2017
The description was changed
avatar jjaracz jjaracz - edited - 19 Jun 2017
avatar jjaracz
jjaracz - comment - 19 Jun 2017

@franz-wohlkoenig
Sorry for that, I was thinking that was obvious :)

avatar jjaracz jjaracz - change - 19 Jun 2017
The description was changed
avatar jjaracz jjaracz - edited - 19 Jun 2017
avatar jjaracz jjaracz - change - 19 Jun 2017
The description was changed
avatar jjaracz jjaracz - edited - 19 Jun 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jun 2017

@jjaracz thanks for Info. Using PR and add Color to the new Fields doesn't change Frontend – expected?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Aug 2017

If this Issue get no Response, it will be closed at 17th September 2017.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2017
Status Confirmed Information Required
avatar laoneo
laoneo - comment - 19 Aug 2017

Why you want to close it, this is a useful feature, it just lacks of testers.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Aug 2017

As there was no Response for 2 month.

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Sep 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-09-17 06:11:55
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 17 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - close - 17 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - close - 17 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Sep 2017

This has been closed due to lack of response to the requests above – it can always be reopened.

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Sep 2017
Status Closed Pending
Closed_Date 2017-09-17 06:11:55
Closed_By franz-wohlkoenig
Rel_Number 0 14353
avatar joomla-cms-bot joomla-cms-bot - reopen - 17 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - reopen - 17 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Sep 2017

Reopened as #14353 needs this PR to be merged.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14427.

avatar joomla-cms-bot
joomla-cms-bot - comment - 17 Sep 2017
avatar roland-d
roland-d - comment - 22 Jul 2018

@jjaracz Could you fix the conflicts please?

avatar JoomliC
JoomliC - comment - 22 Jul 2018

@roland-d Maybe this PR is outdated due to new color picker planned for j4 : #14353 (comment)

avatar roland-d
roland-d - comment - 23 Jul 2018

@JoomliC I don't think this is outdated. This is the only PR that exists for extending the color picker, so if this can get merged it would be great. Any future changes can be done based on this code.

avatar priiish priiish - test_item - 23 Jul 2018 - Tested successfully
avatar priiish
priiish - comment - 23 Jul 2018

I have tested this item successfully on cc572e1

# Testing Steps

  • Opened templateDetails.xml, inserted code snippet, went to Extensions/Templates/Templates/Styles/Protostar/Advanced Settings
  • Tested color picker -> format change works fine, data is being saved correctly into database (Joomla; table: ibloj_template_styles)
  • see screenshots below for datailed documentation

@icampus


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14427.
avatar priiish
priiish - comment - 23 Jul 2018

Screenshots regarding test on Issue #14427
tested successfully
-> changed color formats being saved correctly into database
bildschirmfoto 2018-07-23 um 12 52 00

bildschirmfoto 2018-07-23 um 12 49 29

avatar kneisel kneisel - test_item - 23 Jul 2018 - Tested unsuccessfully
avatar kneisel
kneisel - comment - 23 Jul 2018

I have tested this item ? unsuccessfully on cc572e1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14427.

avatar kneisel
kneisel - comment - 23 Jul 2018

Works "partly".
"Good cases" are working, but other cases can be constructed that work unexpectedly

case:
field name="Color1" type="color" label="Color + changeformat" changeformat="true"
format is set to RGBA but color is displayed as HEX
image

case:
field name="Color3" type="color" label="Color + format" format="rgba"
format is set to "rgba" but it is possible to write hex
image

avatar Schmidie64 Schmidie64 - test_item - 24 Jul 2018 - Tested unsuccessfully
avatar Schmidie64
Schmidie64 - comment - 24 Jul 2018

I have tested this item ? unsuccessfully on cc572e1

I followed the instructions step by step. In some cases the patch works fine for example by changing the Template Color. At the Field were i can pick a format and pick a color, the colorpicker takes in every situtation the Hex-color-code. And when i pick a color and for example rgba is checked, it put in the hex-color-code. But when I switch to the hex button, i've got an invalid hex code.

image

So somewere in the code must be a conversion error.

@icampus


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14427.

avatar roland-d roland-d - alter_testresult - 24 Jul 2018 - priish: Tested unsuccessfully
avatar roland-d roland-d - alter_testresult - 24 Jul 2018 - priiish: Tested unsuccessfully
avatar roland-d roland-d - alter_testresult - 24 Jul 2018 - priish: Not tested
avatar kofaysi
kofaysi - comment - 18 Jan 2019

I have tested this item ? unsuccessfully on cc572e1

J3.9.2

Going directly to the "Template colour" and cycling through the options (hex, rgb, rgba), the value #0088cc has been reset to rgba(0, 0, 0, 1) and does not change back, when applying rgb or hex.

The "Background Colour" colour selector does not have hex, rgb or rgba variants available.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14427.

avatar kofaysi
kofaysi - comment - 18 Jan 2019

I have tested this item ? unsuccessfully on cc572e1

J3.9.2

Going directly to the "Template colour" and cycling through the options (hex, rgb, rgba), the value #0088cc has been reset to rgba(0, 0, 0, 1) and does not change back, when applying rgb or hex.

The "Background Colour" colour selector does not have hex, rgb or rgba variants available.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14427.

avatar kofaysi kofaysi - test_item - 18 Jan 2019 - Tested unsuccessfully
avatar Quy
Quy - comment - 10 Jun 2019

@brianteeman OK to close this?

avatar HLeithner
HLeithner - comment - 1 Jul 2019

@jjaracz thx for your time you have invested into this PR but J3 there will be no new features.
For J4 I'm not sure whats the color picker is but i'm also not sure if this is a feature a user really needs.
It's maybe more confusing an end user if s/he could switch between formats without knowing what this nice values mean.

Anyway I'm closing this for J3, if you like you can look into J4 and maybe can help making the j4 color picker better (or anything else you like to help with).

thx for your investment in Joomla!

avatar HLeithner HLeithner - close - 1 Jul 2019
avatar HLeithner HLeithner - change - 1 Jul 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-07-01 21:52:11
Closed_By HLeithner
avatar N6REJ
N6REJ - comment - 4 Jul 2019

sad that this took 2 yrs just to NOT be implemented.

Add a Comment

Login with GitHub to post a comment