Hi all.
I would like to change the resize main form so that instead of the three standard personal resize it can only show a personal resize name with a personal description appended to file name when selected.
Right now there are the three standard sizes, small, medium and large and when used the new file is called oldname_(size).ext
I have tried to remove those three sizes and add a new size, but they did not disappeared from the window.
I have managed to change the size of the large resize, but I'd rather get my personal style.
I've tried to change the name everywhere, even the translation does not seem to work (my ckfinder is setted to be italian.
So far I have played with plugin.php, plugin.js, config php (removing the three entries for resize) and lang/it.js (if I could get the large renamed this could be ok too, if only I could append a personal part of name.
I hope this makes some sense, thanks for any suggestion.
Lila
I would like to change the resize main form so that instead of the three standard personal resize it can only show a personal resize name with a personal description appended to file name when selected.
Right now there are the three standard sizes, small, medium and large and when used the new file is called oldname_(size).ext
I have tried to remove those three sizes and add a new size, but they did not disappeared from the window.
I have managed to change the size of the large resize, but I'd rather get my personal style.
I've tried to change the name everywhere, even the translation does not seem to work (my ckfinder is setted to be italian.
So far I have played with plugin.php, plugin.js, config php (removing the three entries for resize) and lang/it.js (if I could get the large renamed this could be ok too, if only I could append a personal part of name.
I hope this makes some sense, thanks for any suggestion.
Lila
Re: Setting cuctom value to imageresize plugin
to change size of default sizes of plugin please look at bottom of config.php file.
There is
ig you change these entries/sizes it should change sizes in dialog window of imageresize plugin.
This is for CKFinder 2.1 (latest version).
Hope this helps.
Re: Setting cuctom value to imageresize plugin
Thanks for your answer!
My question is, can I remove those three entries, or at least two of them?
I tried escaping them out but nothing changed on the resize dialogue, while changing the values on one worked.
Those entries append the values 'small', 'medium' and 'large' to the picture name, i.e. picture01.jpg will be picture01_large.jpg
Is there a way to get a picture01_custom.jpg and a customThumb setting displayed on dialogue?
I can settle with the existing one with modified values, but I have to deal students and I would like to limit the choices in order to limit errors
Re: Setting custom value to imageresize plugin
maybe in imageresize\plugin.php change
to
in this way you will always get a filename ended with '_custom'.
By changing
to
you will always get thumbnail size at (100x100) .
In this way you always get file name ended by '_custom' with size (100x100) regardless what thumbnail size your students choose.
Re: Setting custom value to imageresize plugin
Thanks a lot! I will check this once I can get my pc
I guess I should study the code a bit more... I can handel php but scripts are a bit out of my range, sorry for pestering you about this!
Lila
Re: Setting custom value to imageresize plugin
In case of CKFinder for PHP, do the following:
This way only "small" size will be available.
Of course the default value 90x90 might be changed to anything else.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Setting custom value to imageresize plugin