Color Picker Extension

Post Reply
jeffrydell

Color Picker Extension

Post by jeffrydell »

This is a "truly brand-new" request. The extensions included in phpMaker are great - I use most of them and they save a TON of time.

In developing a phpMaker-constructed CMS, I'm finding that it would be nice to incorporate a color-picker for setting up themes.

Thanks!


Piosky_to2003
User
Posts: 23

Post by Piosky_to2003 »

in custom view tag (google map , barcode, you tube) it would be useful to have a ColorPicker tool for choose a color in a texbox
textbox Colorforsupplier --> choose with colorpicker--> #234211 <---


BillyG
User
Posts: 23

Post by BillyG »

+1
Very useful feature!

For the moment, I have solved it by customizing the Edit-Page template (Custom template) with code like this (the 3rd table line):

<table class="colortable">
<tr>
<td>Type<span class="ewRequired">&nbsp;</span></td>
<td>{{{value Type}}}</td>
</tr>
<tr>
<td>Days<span class="ewRequired">&nbsp;
</span></td>
<td>{{{value Days}}}</td>
</tr>
<tr>
<td>RGB<span class="ewRequired">&nbsp;*</span></td>
<td><span id="el_enddatecolor_sRGB">
<input type="color" data-table="enddatecolor" data-field="x_sRGB" name="x_sRGB" id="x_sRGB" value="<?php echo CurrentPage()->sRGB->CurrentValue; ?>" size="30" maxlength="7" placeholder="RGB" class="form-control" data-toggle="tooltip" title="Hex Color with # like #ff00ff" style="width: 100px; height: 50px;"></span></td>
</tr>
</table>

It works on many modern browsers showing a native system color picker and show an text input box as fall back.


Webmaster
User
Posts: 9425

Post by Webmaster »

See the Custom Edit Tag example in v2018.


Post Reply