Object name - resetting

Author Message

Marin Orlic

Thursday 08 September 2005 8:50:56 am

Hi all,

is there a way to reset object names? To be more specific - I had a class C with attributes <name> <surname> and object name was set to be '<name> <surname>' ... now I need the name to be '<surname> <name>'. I've changed this in the class definition, but this applies only to new objects.

How can I reapply the name change to objects published before the change in class definition? There is a script called updatecontentobjectname.php but to me it looks like it's updating the search engine.

I hope somebody more proficient with eZ already had this problem and wrote some script ;)

Thanks!

Gabriel Ambuehl

Thursday 08 September 2005 9:12:35 am

I can say for sure that editing and saving the objects will fix it.

As for what the script does, I'll have to check. (But from memory, another script is responsible to regenerate the search index, one more aptly named)

Correction: looking at the code, it seems like a variant of the indexing script.

Visit http://triligon.org

Marin Orlic

Thursday 08 September 2005 9:30:51 am

Yep, I agree about editing and saving, but it's a loooot of objects :)

I would try to write some ezcli script myself, but I'd rather not mess anything up, just in case ;)

Kristof Coomans

Thursday 08 September 2005 11:18:36 pm

The script updatecontentobjectname.php only updates the name of contentobjects. If you use the --help option of the script, you'll get a description:

<i>eZ publish search index updater.
Goes trough all objects and reindexes the meta data to the search engine.
</i>

But this description is wrong! I'll report this as a bug.

To update the search index, the script updatesearchindex.php is used.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kristof Coomans

Thursday 08 September 2005 11:37:39 pm

Reported as a bug: http://ez.no/bugs/view/7133

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Marin Orlic

Friday 09 September 2005 10:35:13 am

So, can I use this script to update content object names?

Kristof Coomans

Saturday 10 September 2005 4:48:58 am

Yes you can.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.