Every time when I open the ckfinder file manager or when a photo is
loading, the other structure of the folder _thumbs in the folder _
thumbs - which contains all the thumbnails so far done, is created.
It´s going to neverending tree of the folders _thumbs with the same
thumbnails in every of these subfolders.
Please let me know, where I can set up it.
My config.php now is:
loading, the other structure of the folder _thumbs in the folder _
thumbs - which contains all the thumbnails so far done, is created.
It´s going to neverending tree of the folders _thumbs with the same
thumbnails in every of these subfolders.
Please let me know, where I can set up it.
My config.php now is:
$baseUrl = '/userfiles/'; $baseDir = resolveUrl($baseUrl); $config['Thumbnails'] = Array( 'url' => $baseUrl . 'images/_thumbs', 'directory' => $baseDir . 'images/_thumbs', 'enabled' => true, 'maxWidth' => 0, 'maxHeight' => 120, 'quality' => 80);
Re: Folder "_thumbs" chaining
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Folder "_thumbs" chaining
thank you for your answer. I´ve tryed this way, but the folder _thumb is creating direct in the data directory "userfiles". It´s not visible in the CKfinder browser. That´s way the thumbnails are not available to put to the articles..
Leoš
Re: Folder "_thumbs" chaining
1. Add _thumbs to the list of hidden folders:
2. Configure CKFinder to store thumbnails in the _thumbs directory:
3. Create another resource type named "Thumbs" and point it to the path defined above.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Folder "_thumbs" chaining
I achieved only 2 different ends (by variety of solving):
a) $config['HideFolders'] = Array(".svn", "CVS", "_thumbs");
- it will forbid the folder´s recursive creation, but I can´t work with it, because I can´t see it.
b) $config['HideFolders'] = Array(".svn", "CVS", );
- I can see the thumbs, I can work with it, but when I reload the CKfinder the new subfolders creates.
Re: Folder "_thumbs" chaining
You should pick thumbnails from the Thumbs resource type.
If it still can't get it to work, please attach your config file (remove any sensitive data first) and I will tell you what exactly you have to change.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Folder "_thumbs" chaining
Yes, I´ve understood that you wrote and I think, I did it. Maybe I set something wrong in config.php, that´s why I send you my config.php.
Please let me know, thank you very much.
Attachments:
Re: Folder "_thumbs" chaining
(delete the recursively created folders with thumbnails and try this setting)
However, this approach has one drawback: it will allow you to select thumbails created for the "Images" resource type only.
Anyway, this is something that could be improved in the future version of CKFinder.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Folder "_thumbs" chaining
The problem stays that the dialog is displayed InsertImage still only Images.
As visibility Thumbnails here?
Re: Folder "_thumbs" chaining
I didn't want to create a new post as the problem discussed here is exactly what i'm experiencing. I'm using ckfinder 1.2.3 and i've followed the suggestions in this thread and managed to stop the sub-folders chaining. However the thumbnails are being duplicated in a folder called 'Thumbnails' (the name of the new resource type). Is there a way to avoid this duplication?
Other things:
1. I'm using the .net version
2. I've tried to programmatically delete the Thumbnails folder but it gets re-created everytime
Thumbnails.Url = BaseUrl + "thumbs/";
Thumbnails.Dir = "";
Thumbnails.Enabled = true;
Thumbnails.MaxWidth = 100;
Thumbnails.MaxHeight = 100;
Thumbnails.Quality = 80;
type = ResourceType.Add( "Thumbnails" );
type.Url = BaseUrl + "thumbs/images/";
type.Dir = BaseDir == "" ? "" : BaseDir + "thumbs/images/";
type.MaxSize = 0;
type.AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" };
type.DeniedExtensions = new string[] { };
In my thumbs folder, i have an images folder which contains the thumbnails (great!) but i also have a Thumbnails folder with exactly the same content as images (not so great!).
Any suggestions wiktor?
Re: Folder "_thumbs" chaining
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Folder "_thumbs" chaining
Well it took more than two weeks, but finally CKFinder 1.3 is out
It is no longer required to define resource type with thumbnails, because it is now possible to select a thumbnail using the context menu.
There are some additional settings available to control the thumbnail selection: DisableThumbnailSelection, SelectThumbnailFunction, SelectThumbnailFunctionData.
The select function now receives more information about the selected file, it can be used to create link to a full size image automatically (see popups.html example).
More information is available in the documentation.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Folder "_thumbs" chaining
thanks wiktor,
for the information that is received by the select function see http://docs.fckeditor.net/CKFinder/SelectFunction (it has me searching for a while)
Isn't there any whatsnew docs for the CKfinder? If I'm correct, 1.3 does not bring any new features for the end-user, does it?
Re: Folder "_thumbs" chaining
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Folder "_thumbs" chaining
Ok, so fully doing what was stated in this post has definately done something... thanks!