Hello,
I hope I have correctly configured ckFinder but I can't make something work.
I want to call in php ckFinder with a custom and dynamic directory path. I would rather not use the baseUrl variable in config.php with SESSIONS.
I think the StartupPath variable would be the good way to set a different directory path each time I call ckFinder, but I can't make it work. Here is my code :
$finder = new CKFinder() ;
$finder->BasePath = '/libs/ckfinder/' ;
$finder->SelectFunction = 'ShowFileInfo' ;
$finder->StartupPath = 'Files:/content/42/uploads/content/1/' ;
$finder->Width = 800 ;
$finder->Create() ;
I know the path "/content/42/uploads/content/1/" is correct because ckFinder work if I put this path into "baseUrl" in config.php
With this code, ckFinder appears correctly but when I try to access one of the folders (Files, Images, ...) I have this message "Folder not found. Please refresh and try again.".
I guess ckFinder does not use StartupPath variable and only use the baseUrl variable (set by default with "/").
I hope I am clear enough =). Thank you very much ! ckFinder and ckEditor are great solutions !