php - How to display a custom profile based on a specific role? -
For example, I have a role called "teacher" for any user related to that role, I display a custom profile I want to be able to do that is different from the main. I read some space that a topic can create a tpl file in the pages folder and how to show some specific roles or URL paths.
Will anyone help me to take care of me and help me?
I would like to take a look at the content profile module: With this module you can specify the type of content used for the user profile. By doing this, you can take advantage of CCK and do anything with this profile node that you can do with other types of nodes (view, list with panels, style with node.tpl.php etc.) .
In addition, you can assign different roles differently to different profile profiles by setting the node permissions properly. For example, you want to check "Create teacher-profile content" and "Edit your own teacher-profile content", where "teacher_profile" is the name of the type of content you have created, then you can create a second role called "student" and Can create a second content type called "student_profile" and only students can create and edit their related profiles of this different content type You can apply the same permissions to allow.
Comments
Post a Comment