Closed (fixed)
Project:
FileField
Version:
6.x-3.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2009 at 14:00 UTC
Updated:
6 Dec 2010 at 04:44 UTC
How to make description field (which is usually disabled but we can enable it) to allow html tags so that we can write html tags in description field and can link to other files etc.
Comments
Comment #1
Yuki commentedCould somebody help me please.
Comment #2
asak commentedI'm looking for a solution for this as well... will update when i find one ;)
Comment #3
asak commentedOk - played with this some, and found that the following works:
Change the code in filefield_handler_field_data.inc (line 38):
Comment #4
Yuki commentedNothing has changed after changing the code even clearing the cached data...the requirement is the file should be there but there will be a separate description field of that file and If I write any url over in that description it should link to that url.
Comment #5
quicksketchOverride the theme_filefield_file() function in your template.php file within your theme if you'd like to use HTML in your descriptions. I'm closing this issue after lack of activity.
Comment #6
pacome commentedI also need do to it, but i don't know -neither find- with what to override the theme_filefield_file() function to allow html in the description field (i'm not talking PHP fluently).
The final use would be to have a text area with a limited ckeditor profile activated, allowing people to select custom fonts, inserting links etc..
Any help about the overriding for html & text area would be gratefully appreciated!
thx
-P-
Comment #7
quicksketchThe FileField queue isn't really the place for instruction on theming, see this handbook page on getting started with overriding theme functions: http://drupal.org/node/457740