I've built a content management system in PHP and MySQL using FCKEditor and CKFinder. Both of which work great!
Now, I would like to create a page where my client can add photo galleries. Each photo will be associated with a particular gallery in the database. But when my client deletes a gallery, I'd like to have CKFinder delete all files associated with that gallery?
Does that make sense?
Thanks in advance for any help!
Now, I would like to create a page where my client can add photo galleries. Each photo will be associated with a particular gallery in the database. But when my client deletes a gallery, I'd like to have CKFinder delete all files associated with that gallery?
Does that make sense?
Thanks in advance for any help!
Re: Dynamically Delete Files?
That does make sense. What specific help do you need?
If you want to change server side connectors, take a look at Server Side Integration documentation: http://docs.fckeditor.net/CKFinder/Serv ... ntegration, Firefox with Firebug should be also helpful.
Do you track somehow which files belong to particular gallery, perhaps they're stored in a single directory? If yes, it's just a matter of executing correct DeleteFile/DeleteFolder commands.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Dynamically Delete Files?
I'm more of a designer than a programmer. Where to begin?....
In my MySQL database I have a table of galleries and a table of photos. Each photo entry has a "gallery ID" number which associates it with a particular gallery. The image files are all physically housed in one folder on the server.
I'd like to have the image files deleted off of the server when the corresponding gallery is deleted out of the database. Otherwise they'll have hundreds of unused photos taking up space on the server.
I'll take a look at the links you sent. But, any help would be greatly appreciated.
Re: Dynamically Delete Files?
Take a look at core\connector\php\phpX\Utils\FileSystem.php, there is a special unlink method that deletes a folder.
Adjust it to your needs and call it inside of your application, e.g.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+