Closed (won't fix)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2008 at 09:23 UTC
Updated:
26 Jun 2010 at 03:42 UTC
Jump to comment: Most recent
Comments
Comment #1
dopry commentedsure in jquery it's something like $(selector).hide().
Comment #2
Joanzo commentedhei, i found this to hide filename and icon
but i don't know where to put it...
where should i put it ?
i try to put in .module or .inc
but it return error.. can someone help me?
Comment #3
Anonymous (not verified) commentedI was looking for this answer too... and discovered a simpler solution.
Use Content Template (or another method) to remove the display of the linked file name. Just have the href code like this:
<a href="<?php print $node->field_video_url[0]['view'] ?>"></a>Note that there's nothing between the closing > and
</a>. Jquery Media still interprets the link as an embedded video.Nothing like an elegant solution!
Comment #4
bbamboo commentedI had the same problem. Then finally I found this post:
http://drupal.org/node/343106
I tried what the original poster did and it worked for me.
Comment #5
drewish commentedgreat sounds like there's plenty of ways to do it.
Comment #6
stackpool commentedhttp://drupal.org/node/300853
Or, you could just do it the lazy way! :-)
.field-field-videofile {color: #FFFFFF;}
Comment #7
jrockford commentedWell I know this is not the best solution to remove the file name in D6x but it works so far for now. It is line 124 in "FileFormatter.inc" in the module "filefield"
Anyway, my solution : Note the empty $file[""] originally is $file["filename"] just leave it empty and it doesn't send the file name to the screen. Haven't thoroughly tested this but it should be ok.
// Use the description as the link text if available.
if (empty($file['data']['description'])) {
$link_text = $file['']; /////filename (removed to clear file name )
}
else {