Closed (fixed)
Project:
Bibliography Module
Version:
6.x-1.0-beta8
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2008 at 03:20 UTC
Updated:
9 Dec 2008 at 21:41 UTC
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.