Copied to clipboard

Flag this post as spam?

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


  • Andy 9 posts 30 karma points
    Mar 16, 2016 @ 06:00
    Andy
    0

    Bulk relocate nodes

    I’m wondering how to go about bulk relocating nodes programmatically in version 6.

    We have a bunch of folders called ‘media’ within product folders as children, each with any number of media items/nodes. These ‘media’ folders are just not needed anymore and causing confusion for users.

    So all I need to do is loop through all nodes, identify any named ‘media’, then copy to memory all the child items within it. After that, I would delete the un-needed media folder and attach the copied nodes to the parent above.

    Is this easy to achieve with the API’s, and if so which API is best for it with Umbraco 6? Are there any good comprehensive guides?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Mar 16, 2016 @ 07:59
    Richard Soeteman
    0

    Hi Andy,

    You can use the mediaservice API for this https://our.umbraco.org/documentation/Reference/management/Services/MediaService (Look at the Move method). If you want to do this via UI you can use Bulkmanager http://soetemansoftware.nl/bulkmanager

    Best,

    Richard

  • Andy 9 posts 30 karma points
    Mar 16, 2016 @ 22:24
    Andy
    1

    Thansk Richard, much apreciated. I will look into both.

Please Sign in or register to post replies

Write your reply to:

Draft