Hi,

I will have a soccer site which list divisions, teams and players.
For each I have defined a content type.
All players are created as a content node of the content type 'player'.

Now, My wish is that people (=players) can registrate as a user on the site, and be linked to a specific player in the content.

So they can modify certain data of the player. Or that user profile data = Content data of the player. So if they change f.ex. Profile Pic, GSM

How would you tackle this ? Making the link between user and content, will it only be possible manually or can there be a way to do it during registration ?

Tips are welcome.

Comments

scvinodkumar’s picture

I can say stupidly, login as admin, simply edit the node and update the author to respective player. So user have rights to edit the content node which is linked to him.

If you want something dynamically, please check these modules User References or Entity Reference.

DDHOOGE’s picture

I've done it in a different way.

I created a content type 'Player' with the necessary fields. With the 'Inline Entity Form' module i've added this tot the default user registration form.

Now when a user register, he immediately creates a node for the content type 'Player'. And when he edit his user profile, he also edit the node.

Now I want to have the option, that a user can choose to register as a player or a coach. When a coach register, he should fill in other fields, and so create a node for the content type 'Coach' .

With which modules can I realize this ?