1

Topic: delete two files with delete button

Hi,

I am creating a custom CMS using this. I have a data folder which stores all of the webpage HTML. when a client creates a new page it will also create an empty data file when the page is viewed, which is called the same as the file created. so index.php will also have a data file called index.php.

every level in the folder structure will have a data folder.

so what I am trying to do is, change it so when it deletes a file it will also delete the data file applied in that structure.

any help would be great.

Thanks,
James

2

Re: delete two files with delete button

This is very easy to handle by adding your own plugin. Simply listening for the onFileAction DELETE event then delete the other file if it exists.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: delete two files with delete button

Ooooh !
I looked for something like that for about 2 months ! Thanks a lot !