1

There are two user profiles, landlord and tenant. Both require different user role as well as different registration data.

Now tenant can search through landord's profiles and comment / rate on them as well.

How can I achieve this in drupal 7

migrated from stackoverflow.com Aug 4 '11 at 4:44

This question came from our site for professional and enthusiast programmers.

  • Try to clearly state what you are looking for. – Pierre Buyle Aug 3 '11 at 19:53
  • I guess there is no contrib module for this as of now. I will have to make a new module. – Nikhil Aug 7 '11 at 7:10
1

In D6 we can create each node type for each type of profile and use hook_form_alter() to make thing happen. In D7 we can still do the same.

But I guess there is no contrib module for that.

3

I don't know if you are still interested or not. I've got the same problem and I solved in this way:

  1. In the User account you can put an option "Tenant" - "Landlord".
  2. Then use the Rules module to create a rule that gives automatically the role dependent on the option chosen.

Or you can also redirect straight to the edit profile after the registration.

2

You can achieve this by using Profile2 module.

Designed to be the successor of the core profile module, which is deprecated for Drupal 7. In contrast to the deprecated module this module provides a new, fieldable 'profile' entity - leverage the power of fields!

1

The features list for Profile2 include "Optionally, profile forms are shown during user account registration.". If it is not working, then it is either a missing documentation, a bug or a not-yey-implemented feature. In all cases, the issues queue for Profile2 is the place to look for help.

Check also if Profile2 is needed at all. You can directly add fields to users in Drupal 7, Profile2 is only needed when you want/need profiles and users to be separated entities, or several profiles (of different kind) for a single user.

If the user profiles are not bound to site users, then why not use nodes and a dedicated content type?

  • the feature to show profile forms is working. But that is not sufficient. For eg. I have two types of user - landlord and tenant. Now I want separate roles and registration data. How can I do this in drupal – Nikhil Aug 3 '11 at 19:47
0

there is profile2 module (http://drupal.org/project/profile2) or maybe profile lite (http://drupal.org/project/profile_lite) , or you can use edit profile (http://drupal.org/project/edit_profile). or the Profile UX (http://drupal.org/project/pux.)

but you need the module field permision http://drupal.org/project/field_permissions, just select the permision of the field for each role and its all.add the fields at the same profile ,but make diferente permisions for each role ,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.