I am wanting to use CKFinder as a file browser, and have it working just fine at present. I want to have various icons that link to specific paths on the server. With the default browser, you could include &CurrentFolder=path to have it come up with that path displayed.
I've modified the pick.js file, line 11 to the following:
'/blah/fckeditor/editor/plugins/ckfinder/ckfinder.html?type='+type,
And the function accepts 'type' from the function call. What I am trying to determine is if you can extend this URL to include a 'CurrentFolder' definition so that it will open with a certain folder already opened? I.e. Images/left.
I've modified the pick.js file, line 11 to the following:
'/blah/fckeditor/editor/plugins/ckfinder/ckfinder.html?type='+type,
And the function accepts 'type' from the function call. What I am trying to determine is if you can extend this URL to include a 'CurrentFolder' definition so that it will open with a certain folder already opened? I.e. Images/left.
Re: Set starting folder path when calling as file browser (pick.
Re: Set starting folder path when calling as file browser (pick.
Would you mind sharing your solution?
Re: Set starting folder path when calling as file browser (pick.
'/fds/FCKeditor/editor/filemanager/browser/default/browser.html?&CurrentFolder=committees&Type=File&Connector=connectors/asp/connector.asp',
I've spent a whole morning searching and trying to find the answer myself but I'm completely stuck at the minute.
Re: Set starting folder path when calling as file browser (pick.
Re: Set starting folder path when calling as file browser (pick.
Download the latest version of CKFinder and take a look at the popups example.
There are StartupPath and StartupFolderExpanded properties available to control the startup folder. Take a look into the documentation for an explanation of other available options.
In short, setting for example:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Set starting folder path when calling as file browser (pick.
Re: Set starting folder path when calling as file browser (pick.
StartupPath is a property of the CKFinder object. See documentation for more information.
There is a working example included in the CKFinder package that shows how StartupPath can be used: "_samples/js/popups.html".
StartupPath can be used in a similar way when CKFinder is attached to FCKeditor with the SetupFCKeditor method.
In javascript you can use also the following syntax:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Set starting folder path when calling as file browser (pick.
Great work guys!
Re: Set starting folder path when calling as file browser (pick.
//CKFinder.SetupFCKeditor( oFCKeditor, '../../' ) ;
And added this line
CKFinder.SetupFCKeditor( oFCKeditor, { BasePath : '../../', StartupPath : 'Images:/test/' } ) ;
On the file system I made a copy of the userfiles directory and called it test. Added a few different pictures in the test directory so I could tell the two directories apart. It is at the same level as the userfiles directory, and has the same permissions. What am I doing wrong?
Thank you
Re: Set starting folder path when calling as file browser (pick.
Re: Set starting folder path when calling as file browser (pick.
Re: Set starting folder path when calling as file browser (pick.
Another thing to check is whether the resource type used in the startup path is available in the FCKeditor dialog that you have opened (i.e. if StartupPath is pointing to Files resource type and you have opened Image Dialog, where by default only Image resource type is available, the the StartupPath will not work as well).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Set starting folder path when calling as file browser (pick.
Re: Set starting folder path when calling as file browser (pick.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Set starting folder path when calling as file browser (p
Re: Set starting folder path when calling as file browser (p
I have corrected the documentation, thanks and apologies for the confusion.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Set starting folder path when calling as file browser (p
Use javascript to set cookie name "CKFinder_Path" with your default path value (exampe: "Files:/your/path/:0")
text size