Hi Ross
If I understand what you want, I don't think AfterStore plugin will help you during the deletion process :)
First, how do you define parent/child in your app? (perhaps custom SEBLOD field defining parent id ?)
You have to execute your code by onContentBeforeDelete event. Unfortunately, there is no BeforeDelete Seblod plugin available, so you have to create a simple Joomla content plugin.
In the plugin you can do something like this :
- create onContentBeforeDelete method
- in the method, check if the deleting article is the correct SEBLOD Content type (DB table #__cck_core , item->id)
- if it is, get an array of child article ID's you wish to delete.
- for each ID, delete the article using JCckContent class.
That works for me.
Best
Michal