Hey there,
I'm using CKFinder as a pop up on my site. The thing is, that I'm uploading 2 images - logo and photo - with two different pop ups. I need to set maximum allowed dimensions of these images, which is not that hard, right?
$config['Images'] = Array( 'maxWidth' => 1600, 'maxHeight' => 1200, 'quality' => 80);
Re: Various image dimensions
Are both images uploaded in two different instances of CKFinder?
If yes, you can achieve it by assigning an Id to a CKFinder instance (viewtopic.php?t=20914).
Based on the $_GET['id'] you can later change configuration options dynamically in config.php
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Various image dimensions
And yes, there are two different instances. Your solution would definitely solve my problem... but...
What I need to do is two different popups just like the popups in _samples directory. There's no problem with that using Javascript. But how can I do these popups with each one having different configuration?
Thanks for your answer
Re: Various image dimensions
Re: Various image dimensions
Ok, so le't explain this using the popups sample.
Open popups.html inside of some text editor.
Find:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Various image dimensions
well... now i feel like a dummy
anyway, thank you very much, you helped a lot, wiktor
Re: Various image dimensions