I want to know if there is any possible configuration for CKFinder to show only the images uploaded after certain date. The folder that contains the images for CKFinder to show will have at a moment a lot of images to show and I want to be able to display to the user only the latest images and I can not remove the images from the folder because the images are being used to be displayed in another pages of the web site.
I am working with PHP - CodeIgniter, I have CKFinder integrated with CKEditor.
I will appreciate any help with this.
I am working with PHP - CodeIgniter, I have CKFinder integrated with CKEditor.
I will appreciate any help with this.
Re: Want to show only certain images
The first one to change is GetFiles.php, from line 70, where is while loop which reads the folder and ads found files to a $files array. Add there an if statement and check filetime to exclude the old ones.
To have full improvements you could also modify method from .
Robert Mikołajuk
PHP Developer, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Want to show only certain images
I understand how and why I need to modify GetFiles.php but I don't understand why I need to modify CKFinder_Connector_Utils_FileSystem::hasChildren(). Could you explain me this?
Re: Want to show only certain images
hasChildren() checks if given folder has child-folders inside. It has nothing to do with files.
Robert Mikołajuk
PHP Developer, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Want to show only certain images