Not sure I understand: So when you delete a content item, the media item that has been picked on that content item should be deleted as well AND the folder in which the media item is should be deleted?
And by "folder" do you mean the mediatype Folder or the folder on disk?
So first step is i've created a so-called MasterDocType with Alias WebsiteContainer 2. I Create in ContentSection my Node let's say Client Site 1 (DocType-WebsiteContainer) 3. The Event creates automatically a MediaFolder with the Name Client Site 1 in the Media Section/ a User with Name Client Site 1 and a new DocType Client Site 1
Wy all this: I'm using this one install for different small websites on my clients with a separate Backend developed and feeded with data from the webservice
For better workflow i've created this event to save time and not doing click click click and so on. But i need to create an Delete event wich deletes the same Media Folder (sender is holding the name etc.), when i delete the Node in the Content Section.
I hope my explanation is not so difficult, cause my english is not the best :p
Event deleting related media folder
Hy everybody i've created an event creating my users; doctyperelated Media and so on.
Now for better handling of the backoffice i need to create an event wich is deleting the related mediafolder to the document. heres my code so far.
Thanks for all help
Not sure I understand: So when you delete a content item, the media item that has been picked on that content item should be deleted as well AND the folder in which the media item is should be deleted?
And by "folder" do you mean the mediatype Folder or the folder on disk?
I'll explain :)
So first step is i've created a so-called MasterDocType with Alias WebsiteContainer
2. I Create in ContentSection my Node let's say Client Site 1 (DocType-WebsiteContainer)
3. The Event creates automatically a MediaFolder with the Name Client Site 1 in the Media Section/ a User with Name Client Site 1 and a new DocType Client Site 1
Wy all this: I'm using this one install for different small websites on my clients with a separate Backend developed and feeded with data from the webservice
For better workflow i've created this event to save time and not doing click click click and so on. But i need to create an Delete event wich deletes the same Media Folder (sender is holding the name etc.), when i delete the Node in the Content Section.
I hope my explanation is not so difficult, cause my english is not the best :p
is working on a reply...