Is it possible to set the default view settings per CKFinder instance?
Example:
- I want CKFinder #1 to show image thumbnails sorted by date by default
- I want CKFinder #2 to list filenames sorted by name by default
Where in the configuration could I set this?
Thank you!
Example:
- I want CKFinder #1 to show image thumbnails sorted by date by default
- I want CKFinder #2 to list filenames sorted by name by default
Where in the configuration could I set this?
Thank you!
Re: Change default view settings per CKFinder instance?
Re: Change default view settings per CKFinder instance?
Check configuration options listed below:
defaultSortBy
defaultViewType
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Change default view settings per CKFinder instance?
I'm defining my CKFinder instance on the fly using a BrowsServer() function when a user clicks on a link, and I cannot make the default view configuration to work...
Here is my code:
I have tried adding
config.defaultViewType = 'list';
or
finder.config.defaultViewType = 'list';
or
finder.defaultViewType = 'list';
But it still displays the file manager in thumbnails mode... any help?
Thanks.
Re: Change default view settings per CKFinder instance?
is the correct version.
Clear all cookies and it will work. Right now it is not working for you bwecause CKFinder remembers your previous settings (if you have ever visited the "Settings" page and saved your customized configuration).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Change default view settings per CKFinder instance?