Updating '_name' and '_path' by script


#1

Enonic version: 6.15.4
OS: Windows 10

I need to automatically by script update the ‘_name’ (and consequently the ‘_path’) of content type based on on the title from another field. The idea is that I need to also have Norwegian characters in the URL as well. But unfortunately, its seem none of the modify functions seems to work to update this field. It seems something so simple since I can manually edit the URL in the content studio. But still, nothing is working when I try to modify using a script.


#2

To rename an item, you have to use move(), not modify.


#3

Thank you very much. It solved my problem!


#4