Tuesday 16 January 2007 11:07:10 pm
@Xavier
Both your solutions seem to recreate new objects. Would it be possible to keep the same object but change the attributes id (to transfer each attribute) and class id (for the object) directly instead ?
It should be possible with some hocus pocus :-) I think it would be easy to add this to Bartek's extension, since it allows to do the mapping of different attributes manually. In my extension the attribute identifiers need to match. The initial goal of my script was to extract certain portions of an object to another object, because the initial content class design wasn't right and one class had to be split up into two (and its existing content object instances too).
Another related question, about changing the type of one attribute. Say that I want to transform one attribute from date to date time (or birthday or...). Would it be possible ?
You can use the datatypes extension for that. Still need to commit some new stuff though. If you want I can help you with a plugin for specific datatypes.
@ Bartek Adding support for ezuser is not that difficult, I know how to do it but I didn't have the time yet to write it. In fact my extension is a little bit more advenced
I like your extension ;-) But both extensions have their strengths and their weaknesses, it just depends on what you need them for. For those who would like to test Bartek's extension: just enable it and start with /changeclass/select_class/[node_id]
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|