I'm doing well with all the cck modules installed except for the name of the filefield.

When I use this, I get a fully formatted link to the file with the file name as the display for the link. I want to use my text - like "Download File" or something. I'm missing this step if it's possible.

Does anyone know?

Comments

jlooner’s picture

When I get no response like this, I have to think that my question is stupid. Which is unfortunate for me.

jainrutgers’s picture

Here is the quick solution for you....

After uploading the file through cck field note down the url of it.

Use cck field call LINK. Which give you flexibility of having title field and url field (where title will point). So in the title field write 'Download File' and in the url file write the file location that you uploaded.

NOTE: How to get file location. Either click on it and check the browser url or just hover your mouse on file name and bottom right corner of your browser it will show you its location.

Chetan
http://www.cjain.com

Miteto’s picture

There is an option when you setup a filefield - description field. Use it :-)

jlooner’s picture

Yeah, I thought that was how you went about it. But I can't figure it out how to make it work like I want.

I have a Filefield created. I have a description. I don't know how to get it properly on the page.

I'm using a view to display it. I'm using this inside a template - print $fields['field_whatever_fid']->content;

I'm guessing that's wrong. But can you tell me what's right?

jlooner’s picture

For what ever reason, my "descriptions" do not seem to exist with my file field. When I looked in the filefield_formatter.inc, I didn't see anything referencing the description. So I added it manually to that file since on my site I will never want the file name to be exposed. That's unattractive.