eZ Community » Forums » Setup & design » url_alias of user profiles with nickname

url_alias of user profiles with nickname

url_alias of user profiles with nickname

Thursday 21 May 2009 9:02:01 pm - 2 replies


I've a small problem:
The URL to the user profiles look as follows at the moment:

As you can see, the <first_name> and <last_name> is used to identify the object (Mike-Meiers). Due to data protection I want to change the url_alias to ../<login_name>:

When I change the url_alias setting of the user class I've two problems:

1) URL alias of existing users don't change
2) I don't know how to get the login-name (normally <first_name> <last_name> is set). And the user name is a sub-item of <user_account>.

Maybe anyone can help me? Is there a job that regenerates the url_aliases?


Thursday 21 May 2009 9:33:16 pm


For urls to update you need to run updateniceurls script from command line:
php bin/php/updateniceurls.php -s your_siteaccess

For second issue I don't know exactly the solution (didn't try it myself) but you will see when you run the script what will be the result.

Friday 22 May 2009 12:53:19 am

Hi Ivo,

Thanks, that was the right script happy.gif Emoticon
Here is the solution (if someone else has this problem):

1) Change URL-alias name of class "user" to <user_account>
2) Run bin/php/updateniceurls.php -s <site> script

Then you'll have the following URL:

Thanks Ivo,
Good night,



You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from