Pulling File Title and Description from FileManager

Permalink
Hi Is it possible to edit the File Block, so that instead of inputting a title field, it pulls the title and description from the file properties in file manager, so all you do is select the file and it does the rest?

Can it also pull the thumbnail used in the filemanager (less important)

Thanks

BHWW
 
okhayat replied on at Permalink Best Answer Reply
okhayat
You can either modify the main block view (view.php) or make a template out of it (copy it to /blocks/file/templates/view.php) and use the functions:
$f->getTitle() and $f->getDescription() to get the Title and Description of the file respectively.
BHWW replied on at Permalink Reply
BHWW
Excellent answer, thanks, just what I was looking for ;-)
cgrauer replied on at Permalink Reply
cgrauer
In some earlier versions the title from file manager was automatically taken as default value for the title. This was very useful. I don't know why this feature was cacelled. It made it possible to use the dafault title as well as custom titles.