Hi,
I'd love to use the Tooltip plugin on forms as demonstrated on the main website: http://flowplayer.org/tools/demos/tooltip/form.html
I often use CCK for my forms. Can anybody help in setting this up to work on my fields?
Thanks so much! :)
Hi,
I'd love to use the Tooltip plugin on forms as demonstrated on the main website: http://flowplayer.org/tools/demos/tooltip/form.html
I often use CCK for my forms. Can anybody help in setting this up to work on my fields?
Thanks so much! :)
Comments
Comment #1
klonos+1 on this one!
Comment #2
klonosI think that this is a feature request more than a support request.
As for the CCK fields, I am not sure how/if it can be done. If not here than should be a report on CCK issue queue (core for D7).
Comment #3
bluestarstudios commentedSo I'm changing the title back because I'm specifically looking for help on setting the tooltips plugin up on forms in Drupal. Either normal ones or on CCK forms. There's already a thread here on how to use the tooltip plugin in general, but none regarding a forms implementation, thus this specific title.
Also before we change it to a feature request lets have somebody answer the question if this is possible with the functionality the module provides now or not. if not then we can change it to a feature request.
So any ideas or help from anybody? :)
Thanks in advance!
Comment #4
klonosHey bluestarstudios, it's your issue and I believe you can set it as you see fit. All I tried to say is that all other jQuery addons' requests are set as 'feature request'.
Also, I still think that the support question should go in the CCK module's issue queue and not here. First step of course is to add tooltip feature through this addon so that CCK can use it. From jQuery's description:
'The jquery_plugin module allows you to load miscellaneous jQuery plugins from any module or theme by calling the jquery_plugin_add($plugin) function...'
AFAIK it serves as a central jQuery plugin repository/manager and doesn't actually implement jQuery features itself. It simply lets other modules use them. So, I am thinking perhaps you should go this way:
1. Set this as a feature request here. Wait till someone implements it. Once it is done go to next step(s)...
2. Open a feature/support request in CCK module's queue saying that since there is support for tooltips through the jQuery module, to also add support in CCK fields.
In the meantime (before tooltip is officially added in CCK), if you manage to hack something yourself by using 'jquery_plugin_add($plugin)' you can always post it as a workaround in the issue that you'll have created in the CCK queue.
What do you think?
Comment #5
mfbIf you want to actually *do* anything with a jQuery plugin, you need to write your own module (which has this module as a dependency) to add that functionality. Or add the functionality via your theme. This module just gives you the raw jQuery plugin, nothing more.
Comment #6
bluestarstudios commentedHey guys.
Thanks for your help. It all seems pretty clear now. I'm just not getting why should I add tooltip as a feature request since it's already supported in the latest version? Or am I getting something wrong.
So now please help me out. I found this on how to write your own module (http://drupal.org/node/231276), but I'm pretty new to overriding the output of other modules and all. Where should I look on how to add my own code (the code to add the tooltip) to what is being formed by cck?
I really appreciate your help.
Comment #7
jimmyobomsawin commentedAny progress? I'd love to see my CCK "Help Text" show up in this manner.
Comment #8
bluestarstudios commentedHey.
So I never got the tooltip plugin to pickup the content of the help file, but I did manage to find a work around. You can create an extra php field, or (what I ended up doing), created a block with php content. In the block I added the javascript to trigger the Tooltip and what I want the tooldtip to display. Example:
You just have to make sure that .js file is in the correct location and then just view the source code of the page to find the ID of the field you want to behave as the trigger. Also you need to make sure that CSS styles are set well for the tooltip. (you can copy some from the original website). Then just make sure that your block is loaded on the pages with the form and it should work just fine. :)
Hope that helps! :)
BlueStar
Comment #9
andrii_svirin commentedsubscribe