Channel Files
Back to this add-on's main page
View Other Add-ons From DevDemon
Is there a way to get the file extension (not entire mimetype string)
General
|
mahernet
|
| Posted: 24 May 2011 07:02 PM |
|
|
|
|
I’d like to use the extension as a class name to apply icons to an anchor.
If not, could you please add it in? Just add this line to mod.channel_files.php around like 378.
$vars[$this->prefix.'extension'] = $file->extension;
Thanks!
|
|
|
|
|
Kristen Grote
|
| Posted: 20 July 2011 08:20 PM |
# 1
|
|
|
|
Thanks for that code snippet, saved my ass!
|
|
|
|
|
Nuno
|
| Posted: 21 July 2011 11:29 AM |
# 2
|
|
|
|
Glad it helped. If you need more support with this go to DevDemon’s website. I don’t think they’re monitoring this forum… which I didn’t realize until I went a few days without a reply to this thread.
http://www.devdemon.com/forums
|
|
|
|