field-type 'colorpicker'?

More
11 years 2 weeks ago #46840 by kath
hi there,

what would be the best starting point to create a custom field of type 'colorpicker'?
(for example like this: <!-- m --><a class="postlink" href=" yui.github.io/yui2/docs/yui_2.9.0_full/d...sets/colorpicker.jpg "> yui.github.io/yui2/docs/yui_2.9 . ... picker.jpg)

thanks for any advice!
kath :)

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

More
11 years 2 weeks ago #46844 by ggppdk
Replied by ggppdk on topic field-type 'colorpicker'?
Hello

it maybe possible, with some JQuery JS to append these to a FC text field

without need to create a new field



Now about FLEXIcontent having this field
- in general such a field should be easy to create, one solution would be add this to text field,

but then
1. because we may want extra functionality (parameters),
2. because showing the color in frontend, will be complex of in-experienced users by using prefix/suffix etc parameters

so maybe it would be better to have a dedicated field

now it is not available, but rather easy to implement


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 1 week ago #46906 by ggppdk
Replied by ggppdk on topic field-type 'colorpicker'?
Hello

i think you can use colorpicker without creating any new field
e.g. you can use this:


belelros.github.io/jQuery-ColorPicker/



-- just add some custom JS in the item form to attach the color picker to text field with e.g. ID 28 :



1. Add this to your index.php of your Joomla template:
(download place in appropriate folders)

<link rel="stylesheet" media="screen" type="text/css" href="css/colorpicker.css" />
<script src="js/colorpicker.js"></script>



2. in the JS parameter of item form (component or in content type configuration) add: e.g.
[code]jQuery('#container_fcfield_28 input').ColorPicker({flat: true});


-- will propably could add this to text field,

but i think a new field is needed because we really need configuration parameters for this

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 1 week ago #46907 by kath
Replied by kath on topic field-type 'colorpicker'?
oh, interesting, i'll try that, thanks!

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.840 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save