In my page a have the following code:
<?php id=$_GET['id']; if (!is_dir("/files/$id/")) if ( !@mkdir("/files/$id", 0777, true) ) die ('Cannot create a folder'); $finder = new CKFinder() ; $finder->BasePath = '/ckfinder/' ; $finder->StartupPath = "Files:/files/$id/" ; $finder->StartupFolderExpanded = true; $finder->SelectFunction = 'ShowFileInfo' ; $finder->Width = '100%' ; $finder->Create() ; ?>
Re: CKFinder doesn't want to use StartupPath from the config
It looks to me that StartupPath might be wrong. You have set it to: "Files:/files/$id/"
Such a startup path would work, if you had the following folder structure (in Folders pane in CKFinder):
Is it possible that your folder structure looks more like:
and the "files" folder on the server actually points to the "Files" resource type?
If the answer is yes, then the startup path should be set to: "Files:/$id/"
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+