Color Parameters (ADMINISTRATION AREA)

  • Shine7
  • Shine7's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 years 6 months ago - 2 years 6 months ago #6827 by Shine7
Shine7 created the topic: Color Parameters (ADMINISTRATION AREA)
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: 2 years 6 months ago by Shine7.

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

More
2 years 6 months ago #6828 by Dima
Dima replied the 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 ;)

Post your sites as examples into my directory
Zh GoogleMap: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Zh YandexMap: forum.zhuk.cc/index.php/forum/ym-user-s-sites
The following user(s) said Thank You: Shine7

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

Time to create page: 0.043 seconds

Donate


Go to top