开发者

How does one make a Custom user profile on a per role basis?

How would you get about assigning a custom profile to a particular role in Drupal 6? For example if the user belongs to a role "TEAM1" and we want them to have a different profile than the rest of the users, how would you get about doing that? The profile must have basic information they can edit however it should also have some fixed fields that pull information from a database.

I am fairly new to Drupal however am a seasoned developer so if you can kindly spend some time explaining it I would greatly appreciate it. I know that one can utilize the Content Profile module however that throws me off a little since I will be pulling some custom data from the database also. I also know that one can make a custom node tpl file however just not sure how it all links together.

Thanks for your time and pati开发者_运维知识库ence


You can do this with the Content Profile module.

You'd first create a content type for each type of profile you want (let's say, a content type teamone and a content type profile). When you edit each content type with Content Profile installed, you can check a box under the Content profile fieldgroup: Use this content type as a content profile for users.

Now, you'd go to the Permissions page, go to the node section, and assign the create teamone content permission to the TEAM1 role, and assign the create profile content permission to everyone else.

As long as the user doesn't have the administer nodes permission, they'd only be able to create one profile or the other, not both.


You have quite a lot of paths to follow, expecially if you are ready to write some code.

Here's a good point to start from: http://drupal.org/node/264556

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜