In a biblio node view, attachments are shown as the description entered for the uploaded file. In list view we get the filename, however. With long file names this breaks the layout of my theme, and the description looks nicer anyway. By adding/changing two lines in biblio_theme.inc we get description in list view also.
foreach ($node->files as $file) {
if ($file->list) {
$file_count++;
$href = file_create_url($file->filepath);
$files .= l($file->filename, $href) .' '. format_size($file->filesize);
}
}to
...
$href = file_create_url($file->filepath);
$text = $file->description ? $file->description : $file->filename;
$files .= l($text, $href) .' '. format_size($file->filesize);
Comments
Comment #1
rjerome commentedDone.