30 September 2011 at 2:22am
In a template you use $File.Filename to get the path of File. $File.Title will return the name of the file with the dashes converted to spaces. So my-filename becomes "my filename". and $File.Name will return the system filename with dashes
30 September 2011 at 2:36am
That's right, it DOES break you out of the $Songs control loop, but that's the whole point since the method I defined is in the controller and not in the model, using $Link inside the $Songs control loop would only give me the link to the current song being listed.
Instead, with $Top, I get the link to the current page and its "download" method, passing also the current $SongFile.ID.