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?
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?
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
Thansk Richard, much apreciated. I will look into both.
is working on a reply...