Closed (fixed)
Project:
FileField
Version:
6.x-3.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2009 at 11:56 UTC
Updated:
24 Apr 2010 at 03:47 UTC
Hello,
I create a CCK field of type FileField under a content type. I enabled description with cck file upload while creating cck filed. Now i am going to show this file field in a view. i create a custom row style view and showing my field like this
$fields['filed_prof_files']->content;
This will give the out a link and anchored on description. like
<div class="filefield-file clear-block">
<div class="filefield-icon field-icon-text-plain">
<img class="field-icon-text-plain" src="sites/all/modules/filefield/icons/protocons/16x16/mimetypes/text-plain.png" alt="text/plain icon"/>
</div>
<a title="INSTALL.txt" type="text/plain; length=1922" href="sites/default/files/1/INSTALL.txt">installation instruction installation instruction installation instruction installation instruction installation instruction ins</a>
</div>
Now i want to extract TITLE, HREF, ICON, and DESCRIPTION separately.
Is there anyway to do this?
Thanks in advance
--------
Haroon
Comments
Comment #1
haroon373 commentedPosting comment just to tell you how i want to get data. It can be like:
or something similar like this...
Comment #2
haroon373 commentedPlease help me out guys ...
Comment #3
quicksketchSupport for custom theming or coding is not provided in the FileField issue queue. I'd suggest you use print_r() or devel.module's dsm() functions to analyze the variables you have available and print them out as necessary.