Closed (fixed)
Project:
FileField
Version:
6.x-3.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2009 at 19:06 UTC
Updated:
8 Aug 2009 at 03:50 UTC
The following link describes a snippet so that CCK node forms can use to make help text appear above the field rather than below. This works with other cck fields, but doesn't seem to work properly with a filefield cck field. That attached file shows a text field with the help field above and the file field help below. I used the snippet below:
| Comment | File | Size | Author |
|---|---|---|---|
| issue_problem.png | 29.99 KB | hintbw |
Comments
Comment #1
quicksketchOut of date code not working from some random forum post does not indicate a bug in the module. I think to make the change you are wanting, you should override the theme_filefield_widget_item() function.
Comment #2
quicksketchComment #3
mthomas commentedI have the same problem, but it seems to only occur when a CCK filefield has more than one allowed value. All other CCK fields have help text placed above the field and CCK filefields with only one value have the help text placed above the field. The following code in template.php accomplishes this action:
I tried overriding filefield_widget_item() with a variety of solutions. For example:
This is successful in moving the help text above the field for filefields with one allowed value, but for multiple values it doesn't work. I believe there is an issue with the HTML table output associated with the tabledrag for multiple uploads. Any idea what's going on?
Comment #4
quicksketchYes, if there are multiple values, then FileField is no longer responsible for outputting it's own help text. The help text is actually extracted from the widget, and then inserted by CCK.
You can change this display by overriding theme_content_multiple_values(), which is in content.module.
Comment #5
quicksketch