Hi all, I can't find anything on this in the Tutes, Forum or Doku, and I think I'm just going about it the wrong way.
I have a field for uploading a PDF Dossier to a particular page type:
class Tour extends Page {
static $db = array(
);
static $has_one = array(
'Dossier' => 'File'
);
....
Works fine, and I can upload a file, and see it present in the CMS.
Now I am trying to output a link to that file in my template, but I can't figure out how to access the URL, or find any info on just what is available to this data type. Here are two things I have tried with no luck:
<% control Dossier %>
$URL // Also tried $Link
<% end_control %>
And one of the methods I found in the doku
$Dossier.getURL
The latter works to a certain degree. It outputs "http://domain.com/assets/". As too does:
$Dossier.getFilename
Can someone tell me how to output a link to an uploaded file in the template?
Cheers
Aaron