I am using the file module cck to upload my pdf files to my node..

now when I use views to list my files I get the file name already linked to the proper location of the files.

Now can we output the file path separately in views,, instead of using the default standard set by views (which the file already link to the file description)

Comments

merlinofchaos’s picture

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.

I'm not sure exactly which module you're using, but please change the Project to the appropriate module so that the right person can answer this question.

Oghnia’s picture

Project: Views (for Drupal 7) » Content Construction Kit (CCK)
Component: node data » General
yched’s picture

Project: Content Construction Kit (CCK) » FileField
Component: General » Code

This is for filefield.module - you need a formatter that outputs the raw url (you can also make your own formatter, from a custom module of yours)

Oghnia’s picture

how do you do the formatter (sorry I am new to this) [can it be view specific]

yched’s picture

look at the sample code for hook_field_formatter_info() and hook_field_formatter() in cck/field.php

dopry’s picture

Status: Active » Postponed (maintainer needs more info)

which version of filefield are you working with? these formatters are in head, but that code is experimental.

dopry’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

no update.