Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: Yuki commentedCould somebody help me please.
Comment #2
asak CreditAttribution: asak commentedI'm looking for a solution for this as well... will update when i find one ;)
Comment #3
asak CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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