Nathoushka
-
11/29/2011 4:05:20 PM
File extensions in Media Library
I am using Kentico 5.5 with the build 5.5.4237 R2 and I was wondering:
Is it possible with the "Insert/Edit image or media" in the FCKEditor to return the image with its extension? Currently, everything I select a file from the Media Library, it returns a .aspx URL. However, I am currently running a javascript that adds a class depending on the type of the file. For example, .pdf would show a PDF icon besides the link, .doc would show a DOC icon besides it, and etc. Currently, the script does not work because there is no way to distinguish the type of the file with the current URL structure.
Is there a way to show the extension in a Media Library document/image so that I can use my javascript to get that value?
|