| Angus Logan [MVP] 2004-10-08, 7:48 am |
| Hi Bill,
Why do you want to remove the channel and parent channel if a posting is
deleted? - it sounds like a strange practice... I'm interested in the
business requirement for this 
Regards
--
________________________________________
Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________
"bill tie" <billtie@discussions.microsoft.com> wrote in message
news:436765D8-0043-4BF6-B5EE-81B0CA5F7F46@microsoft.com...
>
> This is driving me up the wall.
>
> Suppose the channel structure is as follows:
>
> \Channel A
> postings A
> \Channel B
> postings B
> \Channel C
> postings C
>
> If a user deletes a posting C, I want the program to climb up deleting
> postings C, Channel C, postings B, and Channel B.
>
> What will be left is
>
> \Channel A
> postings A
>
> Try as I might, the best I could do is delete everything I wanted (I
checked
> in the Site Manager}, but the program would crash on an error.
>
> I've tried to do this in CmsPosting_Deleting or CmsPosting_Deleted or
both.
> I'm at the end of my wits.
>
> Could someone write a quick and dirty (preferably clean) sample code that
> would accomplish the exercise?
>
> Thank you.
>
|