0

In ckfinder the default folder names are the "names" of ResourceTypes defined in config.asp. There are three that comes by default - "Files", "Images" and "Flash". My question is if there is a way to change the name of folders that display in ckfinder ? Right now the name of the resource type is the default folder names, in this case "Files", "Images" and "Flash".

In ckfinder version 2.6.2.1 for ASP there is a config.asp file that has various resource types by default - Dim ResourceTypes(1) Set ResourceTypes(0) = DefineResourceType( _ "Files", _ baseUrl & "files", _ baseDir & "files", _ 0, _ "7z,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,‌​jpg,mid,mov,mp3,mp4,‌​​xls,xlsx,zip"‌​, _ "" _ )

These names are used as Folder names in ckfinder. In this case "Files" is displayed as folder name

Rob
  • 14,746
  • 28
  • 47
  • 65
Sanam
  • 1
  • 1
  • 1
    Welcome to `StackOverflow`, please add a [MCVE](https://stackoverflow.com/help/mcve) about as far you got right now. – Hille Nov 30 '17 at 15:36
  • In ckfinder version 2.6.2.1 for ASP there is a config.asp file that has various resource types by default - Dim ResourceTypes(1) Set ResourceTypes(0) = DefineResourceType( _ "Files", _ baseUrl & "files", _ baseDir & "files", _ 0, _ "7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip", _ "" _ ) These names are used as Folder names in ckfinder. In this case "Files" is displayed as folder name. – Sanam Nov 30 '17 at 23:04
  • CKFinder_Config.Add "ResourceType", ResourceTypes Function DefineResourceType(name, url, directory, maxSize, allowedExtensions, deniedExtensions) Dim ResourceType Set ResourceType = server.CreateObject("Scripting.Dictionary") ResourceType.Add "name", name ResourceType.Add "url", url ResourceType.Add "directory", directory ResourceType.Add "maxSize", maxSize ResourceType.Add "allowedExtensions", allowedExtensions ResourceType.Add "deniedExtensions", deniedExtensions Set DefineResourceType = ResourceType End function – Sanam Nov 30 '17 at 23:10
  • Please put it in your question and watch its format – Hille Dec 01 '17 at 06:57

1 Answers1

0

Assuming that you are using CKFinder 3.x: The name property of a ResourceType is used as displayed name in CKFinder. The same was with CKFinder 2.x.

To change default set of ResourceTypes in your application you should change it's configuration and define on set of ResourceTypes.

jodator
  • 2,445
  • 16
  • 29