File type icon frontend upload
-
- Phoca Enthusiast
- Posts: 50
- Joined: 19 Dec 2007, 21:10
- Location: Netherlands
- Contact:
File type icon frontend upload
Is there a possibility to add the file type icon to the frontend list user upload? Now it only shows the filename.
Tags:
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: File type icon frontend upload
Hi, not sure, If I understand what do you exactly mean?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 50
- Joined: 19 Dec 2007, 21:10
- Location: Netherlands
- Contact:
Re: File type icon frontend upload
When frontend upload is enabled and user chooses a category a list of files is shown (if he has already uploaded files in that category). I would like to see the file type icon (pdf, xls etc.) before or after the filename.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: File type icon frontend upload
Now I understand, unfortunately, there is no such option yes, so this needs to be customized directly in the code
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 50
- Joined: 19 Dec 2007, 21:10
- Location: Netherlands
- Contact:
Re: File type icon frontend upload
Thx. At least I know now that I did not miss a setting.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: File type icon frontend upload
Hi, this can be customized in the code:
components\com_phocadownload\views\user\tmpl\default_files.php
FROM:
TO:
Jan
components\com_phocadownload\views\user\tmpl\default_files.php
FROM:
Code: Select all
<td><?php echo $row->title;?> </td>
Code: Select all
<td><?php
$icon = PhocaDownloadFile::getMimeTypeIcon($row->filename);
echo $icon . ' ' . $row->title;?> </td>
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 50
- Joined: 19 Dec 2007, 21:10
- Location: Netherlands
- Contact:
Re: File type icon frontend upload
Thank you!
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: File type icon frontend upload
Ok
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: File type icon frontend upload
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 50
- Joined: 19 Dec 2007, 21:10
- Location: Netherlands
- Contact: