Forums / Developer / Removing a container node that have object-relations

Removing a container node that have object-relations

Author Message

Nicolas R

Monday 09 March 2009 3:11:43 am

Hello,

I have nodes that have object-relations to other nodes. When removing those nodes, I would like that all attached nodes are removed too.
How can I do it ?
Thank you.

Jean-Yves Zinsou

Monday 09 March 2009 1:00:40 pm

Hi,
I would say that the only way of doing it is to make an extension with a custom removal module that takes care of fetching the related content and delete them..

I don't know if you are familiare with ezpublish extensions, but here is a good start guide :
http://ez.no/fr/developer/articles/an_introduction_to_developing_ez_publish_extensions

To use with :
http://pubsvn.ez.no/doxygen/4.0/html/

Hope this helps !
Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr