Label display oddities

anthonym - June 3, 2009 - 16:49
Project:FileField
Version:5.x-2.4
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm using filefield to display 1 or more files attached to a node. At the moment I'm attaching only pdfs. I also have a theme override to turn off the module's default pdf icon since I prefer the one in iconizer. The problems have to do with the way the files are displayed with their label as set in the Display Fields tab.

If set to inline, the label actually appears above the list of files. If set to above, the label does appear above, but in all caps. Also, when set to above, the vertical spacing between the files is less than when set to inline. (I actually prefer the tighter spacing).

In troubleshooting this, I deactivated my theme override, and switched off iconizer for file attachments, but the problem remains. I've fiddled with a custom theme for my node type, but haven't had any success here either.

Any ideas?

AttachmentSize
inline with iconizer icon.png5.27 KB
above with iconizer icon.png4.58 KB
inline with default icon.png5 KB

#1

quicksketch - June 3, 2009 - 21:29
Title:label display oddities» Label display oddities
Category:bug report» support request

The Drupal 5 version of FileField is no longer in development nor are any developers working on it. You might have better luck getting an answer to this question in the Iconizer queue.

#2

anthonym - June 4, 2009 - 00:30

Does this mean that if there is a problem with FileField, (v 5) it won't be fixed. I'm relying on Drupal 5 now because of the Audio module. It would be great if someone could at least try to duplicate what I'm experiencing.

#3

quicksketch - June 4, 2009 - 00:52

From the description provided, it sounds like you're asking a theming question. But if there is a bug in FileField I'd be happy to apply a fix, but no maintainers are likely to spend time to find and fix a bug in the Drupal 5 version since the Drupal 6 version is a complete rewrite and the two versions don't share any code.

#4

anthonym - June 4, 2009 - 13:53

Maybe I'm complicating things a little. I am using a custom theme to display all attached files in one of my node types, but I'm not getting what I wanted. So, to test things a little, I added a file field to a different node type to see the result. The images I uploaded are from that node type which does not have a custom template. To me it seems that the filefield formatter (if that's the correct term) is not working correctly, or at least as I would expect. I've attached an image of my setup for the field in the "Display fields" tab showing that it is set to inline. The other image shows what I would assume should be displayed, but is not (image created in Gimp, not a screenshot). The all-caps effect shown in http://drupal.org/files/issues/above%20with%20iconizer%20icon.png is also strange, and surely must point to some sort of bug.

However, if there is any way I can get the end result I want as shown in the Gimp image through theming, I'd be very happy if someone could help me out or point me in the right direction. I've scoured all the posts I could find on the Drupal site and elsewhere, but nothing is working. I'm currently using this in my custom node template which gives the same result as the default-formatted node:

<?php
print $node->content['field_score_sample']['#value'];
?>

AttachmentSize
display fields tab.png 6.48 KB
inline-gimp.png 4.68 KB

#5

quicksketch - July 25, 2009 - 04:39
Status:active» closed

I don't think I'll be able to provide help on this question. Custom theming is outside the scope of help offered in the FileField issue queue. Considering there haven't been any other posters in the last month, I'm closing this issue.

 
 

Drupal is a registered trademark of Dries Buytaert.