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

haroon373’s picture

Posting comment just to tell you how i want to get data. It can be like:

$fields['filed_prof_files']['title'];
$fields['filed_prof_files']['href'];
$fields['filed_prof_files']['description'];
$fields['filed_prof_files']['icon'];

or something similar like this...

haroon373’s picture

Please help me out guys ...

quicksketch’s picture

Status: Active » Closed (fixed)

Support 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.