This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
97 Posts
7 months ago

Hello everyone

I'm trying to add the users id to their profile article alias when they register or edit their profile. For example, when the user registers an article is automatically created for them in the Users article category. I want the alias for that article to have the users id (not the article id). Like Title: My Name. Alias: 103-my-name. I am using Seblod Code Pack

This BeforeStore only inputs the first and last names: $config['storages']["#__content"]["alias"] = $fields["art_id"]->value . '-' .$fields["user_first_name"]->value . '-' . $fields["user_last_name"]->value;

Thank you

Get a VIP membership
1272 Posts
7 months ago
Level 1

Have a look at the user plugin, might be the option there.

Also, if the user is registering then they do not have an ID ‘beforestore’.

They only have an ID ‘afterstore’.


Get a VIP membership