Link to uploaded file

Talk about Image/File fields (uploading, problems etc.)

Moderator: alexandrleonenko

SFGolfer
Newbie
Newbie
Posts: 6
Joined: Feb 19th, '09, 04:13

Link to uploaded file

Postby SFGolfer » Apr 19th, '09, 13:02

Is there a method of hyperlinking to an uploaded file in View and Details mode?

SFGolfer
Newbie
Newbie
Posts: 6
Joined: Feb 19th, '09, 04:13

Re: Link to uploaded file

Postby SFGolfer » Apr 20th, '09, 17:56

Here is the solution to add to the View section in your config file...

Code: Select all

"filename" =>array("header"=>"File Link", "type"=>"link", "align"=>"left", "wrap"=>"nowrap", "text_length"=>"50", "case"=>"normal", "sortable"=>"false", "field_key"=>"filename", "field_data"=>"filename", "target"=>"_new", "href"=>"http://yourdomain/uploaddirectory/{0}"),


Return to “Field type: "image/file"”