Updating '_name' and '_path' by script

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.

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

1 Like

Thank you very much. It solved my problem!