Why would you change main node of an object a lot, especially if contains lots of child nodes?
Anyways, it seems to me that this should be definitely achievable with eZ API, the logic seems quite straightforward, and it could be in form of a cronjob or an action for which an extra button would be added in the admin interface. You would have to consider performance issues, though. Unless it is a couple of comments per thread, this could be quite an exhaustive operation, especially as a cronjob.
not exactly a magic solution, but at least there is an extension that adds a "move all selected nodes" button in the admin interface, right next to the "delete selected nodes". It goes a long way in making such tasks easier
Principal Consultant International Business
Member of the Community Project Board
ps: as André pointed out, if you use "move", by default all children will follow. Can you use that functionality instead of swapping node location of the container object itself?
Principal Consultant International Business
Member of the Community Project Board
Cool, I'll check out the extension, it will help alot.
The reason I'm doing this through locations is that all the articles already have what will be the new main location as a secondary location. I'm moving from having nodes primarily positioned on dates and secondary on tags to the other way around. Since the nodes already have the locations, this is alot simpler to do.
This extension makes this doable: http://ez.no/developer/contribs/template_plugins/multi_node_functions
Thanks alot for that! I can't for the life of me understand why there isn't such functionality in eZP already, I've longed for it many a time before :) Or a dropdown with actions, like in Gmail.
You must be logged in to post messages in this topic!