Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ziad 4 posts 74 karma points
    Sep 20, 2015 @ 14:18
    ziad
    0

    Delete related items in multilingual site

    I have made a functionality for my multilingual site, where a copy is created in all other projects when I create an item in one of them.

    so if I create an item in my english version of my site, a copy will be created in the french one...

    Now, i am trying to make a functionality for deletion in the same way.

    so if I delete an item in the englsih site, I want the related items in all the other languages/sites to be deleted. Anybody know how that is done???

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 21, 2015 @ 09:57
    Douglas Robar
    0

    Hi, Ziad,

    I take it you coded a custom event handler (also called an action handler, depending on the version of Umbraco you're using) that creates the copies of new pages in the other language sites. You probably used either the Create or Publish event to trigger your code. That's certainly how I'd do it.

    You'd do the same sort of thing for deleting. Create a custom event handler that is triggered by the Delete event. Look for any related pages of the page you're deleting and delete them as well.

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft