When a CCK field is displayed on an add or edit screen, it typically displays the title, then the textbox (or whatever is used to enter data) and then the help text.

I'd usually like the help text to come after the title but before the data entry widget. Can anyone point me in the right direction?

Here's what I do know:

I know how to theme the forms thanks to http://drupal.org/node/601646

I've figured out how to recreate the basic form structure using the code at http://thedrupalblog.com/creating-custom-theme-layout-cck-node-form which I modified as follows:

<?php 
foreach ($form as $k => $v) {      
    // check if the current key is a CCK field
    if (substr($k, 0, 6)=='field_' || $k=='body_field' ||$k=='title') {
      // NOTE: you can use the drupal_render() function to generate the output on $v
      // in this example, I'll create the html for each field and store it in an array
       
       print drupal_render($form[$k]);
    }
};

print drupal_render($form);?>

I know that you can theme CCK fields by using content-field-*.tpl.php, but as far as I can tell that only themes the fields on the display pages, not the add and edit pages.

Any assistance would be appreciated.

Comments

savageanne’s picture

Can anyone give me a suggestion about how to get help with this issue?