Closed (fixed)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2008 at 07:20 UTC
Updated:
24 Apr 2010 at 01:55 UTC
So i figured out that in filefield_formatter.inc, if you change
return '
';
to
return '
';
you can change whether or not you have the description or the filename displayed as the textual link. I don't know how to make a radio button to add this into the menu, but if someone could that would be AWESOME!
Comments
Comment #1
jpetso commentedDude?! I added descriptions as default caption in filefield's 5.x versions already. What a mean world to bring that freaking filename back again.
Even if the description is optional, it should be pretty straightforward for filefield to include something like
...if just for the sake of nice defaults without the need for theming adaptions. Instead of the hardcoded filename caption in filefield_formatter.inc:65.
Sounds reasonable?
Comment #2
rhache commentedsubscribing.
If I understand correctly, this issue is because the description field is not being used as the link text. That would be great if it could be fixed. However, I would recommend the following changes/upgrades as well:
Sincerely,
Rene
Comment #3
gmreed commentedSubscribing.
Comment #4
dopry commentedfixed in head... description is in the link title.
Comment #6
davidwhthomas commentedI made a small module ( file_info ) that provides formatters for :
1. Description
2. Description linked to file
3. Image title
4. Image alt
For use with filefield and imagefield.
This means in Views you could have a field for the image and a field for the description etc...
You can also show the description linked to the file instead of the filename.
The formatter may be selected from the display settings drop down.
Should I provide this as a contrib module, or perhaps as a patch to filefield?
DT
Comment #7
ademarco commentedThat would be really useful. Subscribing.
Comment #8
quicksketchdavidwhthomas, Could you please open a new issue for this new feature request?
Comment #9
quicksketchComment #10
bredi commented@#6
where is it?
Comment #11
bredi commentedA Bad Solution!
=-=
I have no idea why one would want to print the name of the file underneath a movie or file..
I wasn't able to remove the filename with any of the options mentioned above with FFa7
So,
In the last line of filefield_formatter.inc
I simply changed the name of "filename to filename-disabled".
return '
';
}
to
return '
';
}
This essentially breaks the code. Which is not a great solution. But until there is one, this works...
I'm kinda thinking this is broken anyway...
Of course, you need to do this everytime you upgrade the module.
widget anyone?
Comment #12
aJob commentedWe Wants It
Comment #13
quicksketchPlease open a new request.