I am having trouble accessing the cck file field raw data. Nomatter what I try in the view or the custom view field template, I cannot get the filepath by itself.

In a node view I can reach my file field by simply using
$field_mp3file[0]['filepath'];

Is there something comprable for accessing a file field from a field view?

In my views field theme I can't figure out how to get the filepath. I've tried so many ways but nothing seems to work. When I do print_r on the $field or $row variable I get a lot of vaues (including field id), but I get no filepath or url. I can use the $output variable but it ads extra formating to the url which means it's not useful for my particular function.

so to recap, I need to get access to my cck file field url so that I can do custom theming and send the mp3 path to my flash app. The $output variable adds extra stuff to the data so I can't use it.

Comments

orgnsm’s picture

i have the exact same question

merlinofchaos’s picture

Status: Active » Closed (won't fix)

If you only read one of these submission guidelines, read this one. (Then please read the rest) If your problem deals exclusively with fields or filters provided by another module (CCK, Image, VotingAPI are common) please post the issue under the queue for that module first; all modules are responsible for telling Views about their own fields. It's possible Views IS at fault, but the module maintainers are the best people to make that determination, and they can kick the issue into the Views queue with an explanation of what's wrong if that is the case.

My guess is that filefield queries separately and that the actual data you need is stored somewhere on the handler, but I don't know as filefield is not part of Views core.