We have a requirement where we need to disable creating transactions in some Publications. We cannot remove these publications from Publication Target, because we need them, but we would like to do it via the Event System for example on transaction save args.
I have tried in
EventPhase.Initiated, but nothing seems to work.
Has anyone had similar requirement and how did they achieve it?
OK, so here is my thing, to make it plastic.
We have Publications:
- level 1
- level 2
- level 3
- level 4
I want to be able to publish from each of these levels, but, if I send item to publish from level 1 in all child Publications (2, 3, 4), I want to have only transactions from level 1 and 4. I also don't want to remove level 2 and 3 from Publication Target, because then I will not be able to publish from that level in all children (level 4), which is a must.