Hi All,
Is there a way to place help text for a given CCK field just below the label, instead of the usual help text below the actual field?
This because when I have a multi-valued field (say references), the help text appears way below the last value entry. A user might typically miss out on the help instructions.
Also, anyway to theme the text as well (instead of the usual allowed tags), say, setting a background for specific field's help text only?
Thanks in advance. - Ben.
jQuery to move the help text and you should be able to theme any backgrounds etc with CSS. *
Ryan LeTulle*
bayousoft http://twitter.com/bayousoft -twitter
On Sun, Mar 6, 2011 at 6:23 AM, Benjamin Jacob ben4asterisk@yahoo.comwrote:
Hi All,
Is there a way to place help text for a given CCK field just below the label, instead of the usual help text below the actual field?
This because when I have a multi-valued field (say references), the help text appears way below the last value entry. A user might typically miss out on the help instructions.
Also, anyway to theme the text as well (instead of the usual allowed tags), say, setting a background for specific field's help text only?
Thanks in advance.
- Ben.
-- [ Drupal support list | http://lists.drupal.org/ ]
Have a look at theme_form_element:
http://api.drupal.org/api/drupal/includes--form.inc/function/theme_form_elem...
You can simply copy that code into your theme's template.php file and rename it {my_theme_name}_form_element and change the code around.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 3/6/2011 7:23 AM, Benjamin Jacob wrote:
Hi All,
Is there a way to place help text for a given CCK field just below the label, instead of the usual help text below the actual field?
This because when I have a multi-valued field (say references), the help text appears way below the last value entry. A user might typically miss out on the help instructions.
Also, anyway to theme the text as well (instead of the usual allowed tags), say, setting a background for specific field's help text only?
Thanks in advance.
- Ben.
O cool. I love finding easily approachable stuff like this. :) *
Ryan LeTulle*
bayousoft http://twitter.com/bayousoft -twitter
On Sun, Mar 6, 2011 at 8:33 AM, Jamie Holly hovercrafter@earthlink.netwrote:
Have a look at theme_form_element:
http://api.drupal.org/api/drupal/includes--form.inc/function/theme_form_elem...
You can simply copy that code into your theme's template.php file and rename it {my_theme_name}_form_element and change the code around.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 3/6/2011 7:23 AM, Benjamin Jacob wrote:
Hi All,
Is there a way to place help text for a given CCK field just below the
label, instead of the usual help text below the actual field?
This because when I have a multi-valued field (say references), the help
text appears way below the last value entry. A user might typically miss out on the help instructions.
Also, anyway to theme the text as well (instead of the usual allowed
tags), say, setting a background for specific field's help text only?
Thanks in advance.
- Ben.
-- [ Drupal support list | http://lists.drupal.org/ ]
Same here! :-)
Thanks a ton Ryan and Jamie. Lemme try this one out.
cheers - Ben
--- On Sun, 3/6/11, Ryan LeTulle bayousoft@gmail.com wrote:
From: Ryan LeTulle bayousoft@gmail.com Subject: Re: [support] placement of help text for field and theming To: support@drupal.org Date: Sunday, March 6, 2011, 2:40 PM
O cool. I love finding easily approachable stuff like this. :)
Ryan LeTulle
bayousoft -twitter
On Sun, Mar 6, 2011 at 8:33 AM, Jamie Holly hovercrafter@earthlink.net wrote:
Have a look at theme_form_element:
http://api.drupal.org/api/drupal/includes--form.inc/function/theme_form_elem...
You can simply copy that code into your theme's template.php file and
rename it {my_theme_name}_form_element and change the code around.
Jamie Holly
On 3/6/2011 7:23 AM, Benjamin Jacob wrote:
Hi All,
Is there a way to place help text for a given CCK field just below the label, instead of the usual help text below the actual field?
This because when I have a multi-valued field (say references), the help text appears way below the last value entry. A user might typically miss out on the help instructions.
Also, anyway to theme the text as well (instead of the usual allowed tags), say, setting a background for specific field's help text only?
Thanks in advance.
- Ben.
--
[ Drupal support list | http://lists.drupal.org/ ]
-----Inline Attachment Follows-----