>> On Thu, Nov 12, 2009 at 2:49 PM, Christophe Lombart >> <[email protected]> wrote: >> > Are there some tools/servlets/scripts or whatever to make massive updates >> > on >> > node properties ? [...]
> 2009/11/12 Vidar Ramdal <[email protected]> >> In our project, we usually do that kind of stuff in a .esp script. >> We get the nodes we need to change with an XPath query, and iterate >> over the result, doing the changes we need to do on each node. >> [...] >> That works well for us - but if you have a simpler solution, that >> would certainly be interesting. On Thu, Nov 12, 2009 at 3:23 PM, Christophe Lombart <[email protected]> wrote: > I have not a simpler solution but I would like to have a some "generic" > scripts or servlets for doing something like this. Ah, OK. That could be interesting. What if you could post to a (Json)QueryServlet URL, something like: POST http://localhost:8080/.query.json?statement=//*[sling:resourceType='myContentType'] ... with the fields myprop=123 anotherProp="new value" ...etc The servlet would then run the query, and run the modifications on each result node. -- Vidar S. Ramdal <[email protected]> - http://www.idium.no Sommerrogata 13-15, N-0255 Oslo, Norway + 47 22 00 84 00 / +47 21 531941, ext 2070
