Copied to clipboard

Flag this post as spam?

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


  • jiten 3 posts 103 karma points
    Sep 08, 2017 @ 11:33
    jiten
    0

    create copy of content with child document C#

    enter image description here

    Hello guys,

    i am very new to umbraco cms. i need some help to achieve following output when cms user create any person shown in image i want to mirror existing content and paste in tree. for an example when i create any new people and publish it, a new copy of Home should be created dynamically.

    for clear example, i do have multiple domains and for every domains website content will remain same with some change in content data. so when CMS admin create new country than new Home website should be created, Like for USA HomeUS, for India HomeIN.

    please guide me through.

    Regards, Jiten Siddhpura

  • Alex Skrypnyk 6133 posts 23952 karma points MVP 7x admin c-trib
    Sep 08, 2017 @ 12:26
    Alex Skrypnyk
    0

    Hi Jiten

    You can subscribe to node creation event, read more how to use events - https://our.umbraco.org/documentation/reference/events/contentservice-events , and create node what you need during this event, so your system will create as many nodes as you need, and where you need.

    Thanks,

    Alex

  • jiten 3 posts 103 karma points
    Sep 08, 2017 @ 12:28
    jiten
    100

    Thanks Alex,

    i will look forward and give it a try. and get back to you with output.

    I tried and contentService.Copy method did the work for me...

    Thanks for you quick response.

    Regards, Jiten Siddhpura

Please Sign in or register to post replies

Write your reply to:

Draft