Page 1 of 1

Change download icon for file type

Posted: 15 May 2014, 20:12
by Marioverehrer
Hello community,

my question is if there is an option to set a download icon for a file type which isn't assigned to one by default. In my case I wanted to assign an icon for my mid-files. It would even be enough if I could assign the icon for mp3-files to my mid-files.

Thanks in advance,

Marioverehrer

Re: Change download icon for file type

Posted: 18 May 2014, 23:51
by Jan
Hi, added to feature request list.

To customize it now, go to:
administrator\components\com_phocadownload\libraries\phocadownload\file\file.php

see the public static function getMimeTypeIcon( ... method

and change from:

Code: Select all

case 'ogg':
case 'mp3':
case 'wav':
$icon = 'audio';
break;
to:

Code: Select all

case 'ogg':
case 'mp3':
case 'wav':
case 'mid':
$icon = 'audio';
break;
Jan

Re: Change download icon for file type

Posted: 05 Jun 2014, 17:46
by Jan
Added in 3.0.5

Jan