Color Parameters (ADMINISTRATION AREA)

  • Shine7
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago - 8 years 9 months ago #6827 by Shine7
Hello there, I see administrator should enter 6-character-codes to set color into a text-box. But I think changing the type of such fields to "color" is really useful.

So If you wanna have this function; Please go to the following folder on your server:

administrator//components/com_zhgooglemap/models/forms

then select related XML file; for example I wanna have color-picker for Paths, so I open/edit this file:

mappath.XML

Look up for the following codes:
<field
                        name="color"
                        type="text"
                        label="COM_ZHGOOGLEMAP_MAPPATH_DETAIL_COLOR_LABEL"
                        description="COM_ZHGOOGLEMAP_MAPPATH_DETAIL_COLOR_DESC"

then easily change the type of the field to "color"; So you should have this structure:
<field
                        name="color"
                        type="color"
                        label="COM_ZHGOOGLEMAP_MAPPATH_DETAIL_COLOR_LABEL"
                        description="COM_ZHGOOGLEMAP_MAPPATH_DETAIL_COLOR_DESC"

Done!

Special thanks to the author(s) of this fantastic extension :)

Regards
Last edit: 8 years 9 months ago by Shine7.

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #6828 by Dima
Replied by Dima on topic Color Parameters (ADMINISTRATION AREA)
Hi
But in this case can you enter complicated colors, like gradient.
For example like background for placemark list

wiki.zhuk.cc/index.php?title=Zh_GoogleMa...ption#Placemark_List

Don't forget support my developments: post review in JED , donate , help with translation ;)
The following user(s) said Thank You: Shine7

Please Log in or Create an account to join the conversation.

Time to create page: 0.154 seconds

Donate


Go to top