(→Properties) |
|||
Line 9: | Line 9: | ||
* '''[[CKFinder/SelectFunction|SelectFunction]]''' - An optional function to be called when the user selects a file in CKFinder. | * '''[[CKFinder/SelectFunction|SelectFunction]]''' - An optional function to be called when the user selects a file in CKFinder. | ||
* '''[[CKFinder/SelectFunction#SelectFunctionData|SelectFunctionData]]''' - An optional argument of type string that will be passed to the "SelectFunction". Please refer to the js/popups.html file for a usage example. | * '''[[CKFinder/SelectFunction#SelectFunctionData|SelectFunctionData]]''' - An optional argument of type string that will be passed to the "SelectFunction". Please refer to the js/popups.html file for a usage example. | ||
− | * '''SelectThumbnailFunction''' - An optional function to be called when the user selects a thumbnail in CKFinder. Default value: "SelectFunction" (if "SelectFunction" is set). | + | * '''[[CKFinder/SelectThumbnailFunction|SelectThumbnailFunction]]''' - An optional function to be called when the user selects a thumbnail in CKFinder. Default value: "SelectFunction" (if "SelectFunction" is set). |
− | * '''SelectThumbnailFunctionData''' - An optional argument of type string that will be passed to the "SelectThumbnailFunction" | + | * '''[[CKFinder/SelectThumbnailFunction#SelectThumbnailFunctionData|SelectThumbnailFunctionData]]''' - An optional argument of type string that will be passed to the "SelectThumbnailFunction". |
− | + | * '''[[CKFinder/SelectThumbnailFunction#DisableThumbnailSelection|DisableThumbnailSelection]]''' - If set to true, "Select thumbnail" item will not appear in the context menu. Default value: false. | |
− | |||
− | * '''DisableThumbnailSelection''' - If set to true, "Select thumbnail" item will not appear in the context menu. Default value: false. | ||
* '''StartupPath''' - Resource Type and the name of the startup folder, separated with a colon (for example: "Files:/", "Images:/cars/"). If defined, CKFinder will open the selected folder automatically. | * '''StartupPath''' - Resource Type and the name of the startup folder, separated with a colon (for example: "Files:/", "Images:/cars/"). If defined, CKFinder will open the selected folder automatically. | ||
* '''StartupFolderExpanded''' - Used only when "StartupPath" is set. If set to true, the initial folder will be opened automatically on startup. | * '''StartupFolderExpanded''' - Used only when "StartupPath" is set. If set to true, the initial folder will be opened automatically on startup. |
Revision as of 16:05, 16 December 2008
Properties
To use CKFinder, both integration methods can be used. Regardless of chosen method, the following properties are available in the CKFinder object in both cases:
- BasePath - The URL path for the installation folder of CKFinder. Default value: "/ckfinder/".
- Width - The CKFinder width (for example: 600, '80%'). Default value: "100%".
- Height - The CKFinder height (for example: 500, '100%'). Default value: 400.
- SelectFunction - An optional function to be called when the user selects a file in CKFinder.
- SelectFunctionData - An optional argument of type string that will be passed to the "SelectFunction". Please refer to the js/popups.html file for a usage example.
- SelectThumbnailFunction - An optional function to be called when the user selects a thumbnail in CKFinder. Default value: "SelectFunction" (if "SelectFunction" is set).
- SelectThumbnailFunctionData - An optional argument of type string that will be passed to the "SelectThumbnailFunction".
- DisableThumbnailSelection - If set to true, "Select thumbnail" item will not appear in the context menu. Default value: false.
- StartupPath - Resource Type and the name of the startup folder, separated with a colon (for example: "Files:/", "Images:/cars/"). If defined, CKFinder will open the selected folder automatically.
- StartupFolderExpanded - Used only when "StartupPath" is set. If set to true, the initial folder will be opened automatically on startup.
- RememberLastFolder - If set to true, CKFinder will remember the last used folder in a cookie. In some cases, it may be required to store the name of last used folder in separate cookies for different CKFinder instances, in such case, assign the "Id" property (explained below). Default value: true.
- Id - Used to identify the CKFinder object, optional. If set, the "Id" variable will be passed to the server connector on each request. When "RememberLastFolder" is enabled and the "Id" is set, CKFinder will remember the last directory in a separate cookie.
- ClassName - The name of the CSS class rule assigned to the CKFinder frame. Default value: "CKFinderFrame".