Hi all
is there a way to upload files (just images) to multiple folders based on different pages. the website privacy requires the photos in one page not to viewed by others in another page.
i used the following code to pass the current page path to the ckfinder.html file, from the website header file.
filebrowserImageBrowseUrl : '/blah/ckeditor/ckfinder/ckfinder.html?Type=Images&pagePath=<?=$this->page->getPageAscii($this->uri->segment(3));?>'
what i want is, the website should dynamically create the baseUrl based on page path in config.php
something like this
$baseUrl = '/blah/ckeditor/ckfinder/userfiles/'.$_SESSION['pagePath'];
is there a way to use the startuppage path to achieve the task.
i wish there was a way to get the pagepath variable which has the path information from ckfinder.html to config.php of ckfinder.
or
the $baseUrl variable in ckfinder.html from config.php.
please help me out
Cheers
Calvin
is there a way to upload files (just images) to multiple folders based on different pages. the website privacy requires the photos in one page not to viewed by others in another page.
i used the following code to pass the current page path to the ckfinder.html file, from the website header file.
filebrowserImageBrowseUrl : '/blah/ckeditor/ckfinder/ckfinder.html?Type=Images&pagePath=<?=$this->page->getPageAscii($this->uri->segment(3));?>'
what i want is, the website should dynamically create the baseUrl based on page path in config.php
something like this
$baseUrl = '/blah/ckeditor/ckfinder/userfiles/'.$_SESSION['pagePath'];
is there a way to use the startuppage path to achieve the task.
i wish there was a way to get the pagepath variable which has the path information from ckfinder.html to config.php of ckfinder.
or
the $baseUrl variable in ckfinder.html from config.php.
please help me out
Cheers
Calvin
Re: Upload files to multiple folders based on different page
thanks anyways
Re: Upload files to multiple folders based on different page
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: Upload files to multiple folders based on different page
Re: Upload files to multiple folders based on different page
@akraus - check the following post:
viewtopic.php?t=20914
In short, instead of using pagePath attribute in the URL, which might be insecure, I'd suggest assigning an ID to the CKFinder instance. Based on the ID of a website, you could then specify the correct path in the configuation file.
Another alternative is to use session variables, see another post: viewtopic.php?t=20561
If something is still not clear, please feel free to ask.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
thanks for nice explanations
I just found this post on a god abandoned summer day, and it was spot on. Thank you for the clarity of explanation with the useful links to related posts!
/paolo