Hi,
I have an existing PHP based dynamic image resizer and cropper that i wrote, using DG Image, that works on the fly and works so users can see what they are creating. I was looking into the possibility of adding it into CKFinder, (which is fab), so a user could resisze and upload all in one place.
I would like to be able to pass to my php resizer pages the current folder that the user has currently selected in CKFinder, so the images are uploaded into the correct folder.
I would like to add a button to the "PopUpButtons" DIV on the page: core/pages/ckffiles.html
a simple link with the folder info would be fine. I can do all the rest.
Maybe i need to add a button instead, that links to the resizer, im not sure?
I have spent a while and am unable to get the current folder location into my link or out the page.
Any help much appreciated.
Regards,
TW
I have an existing PHP based dynamic image resizer and cropper that i wrote, using DG Image, that works on the fly and works so users can see what they are creating. I was looking into the possibility of adding it into CKFinder, (which is fab), so a user could resisze and upload all in one place.
I would like to be able to pass to my php resizer pages the current folder that the user has currently selected in CKFinder, so the images are uploaded into the correct folder.
I would like to add a button to the "PopUpButtons" DIV on the page: core/pages/ckffiles.html
a simple link with the folder info would be fine. I can do all the rest.
<a href="Javascript:alert('CurrentFolder');">Auto Upload</a>
Maybe i need to add a button instead, that links to the resizer, im not sure?
I have spent a while and am unable to get the current folder location into my link or out the page.
Any help much appreciated.
Regards,
TW
Re: Current Folder Path
Perhaps it would be a good idea to add a basic javascript API to access some necessary values.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Current Folder Path
The aK.ar was the bit i was after and couldn't find the bits I needed. Probably looking in the wrong place for the definitions.
Thanks very much. It works perfectly.
Just on a final note, once I have done my upload, Is there a call I can use to refresh the just current folder view from the pop up image uploader just before i close the pop up, so that the new image is displayed in the list?
I am using
However this refreshes the whole view back the the default images directory, not the current folder view.
Hope that makes sense, I am not great at explaining things, sorry. Doing my best.
Keep up your great work, you guys are great....
Cheers,
Re: Current Folder Path
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Current Folder Path
Although I don't seem to be able to call it from the popup image cropper before I close it:
the d.Refresh(); is causing an error:
Is there more to the structure of the CKFinder window, I need?
I am using version 1.1 because i get the 200 error using V 1.2 FYI
Thanks very much,
Really appreciate it.
Re: Current Folder Path
The Answer, just in case anyone is interested, and I know how annoying for others to find incomplete topics
Re: Current Folder Path
Thanks for sharing the answer with others. I'm happy that you managed to figure it out!
If you have any more questions, feel free to ask
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+