By dan90@drupal.org on
I am playing with using drupal for an ecologically-friendly products site. Ideally i want two kinds of users:
- normal humans, who can log in and chat on forums about the politics of green consumerism, or whatever, but not much else
- businesses, who additionally maintain a profile of all their address details, and may be searched by locality and product type.
Initially i was trying to do this all with user profiles, which can certainly hold the info i want for companies, but of course then normal users would also end up with company-type information in their profile, and would be publically searchable, which is certainly undesirable.
Hmm. what's the proper drupal way to approach this?
i've spent two days awash in a sea of modules without divining which, if any, of them will sort me out, or whether i would need to hack something...
Comments
other restrictions on user roles
more generally than that, how does one handle sites well that look different to different user roles? Example: i can use permissions easily to ban some user roles from creating content, but the link to do so still appears in the navnigation block, throwing a permission denied error if such a user should access it
Use flexinode
1. Create an additional role, "Business" (assume "authenticated" for "regular" humans)
2. Use flexinode module to create a "Business Profile" content type, with fields as desired
3. Give permission to the "Business" role to create "Business Profile" content
4. Create "Locality" and "Product Type" vocabularies, and make them apply to the "Business Profile" content type.
that's a neat (almost) solution
I'm impressed by your elegant use of vocabularies
...although you can't restrict each business to one listing with flexinode.
still, very cool
Closest I could get without
Closest I could get without custom development. Flexinode is pretty powerful and excellent for prototyping, but sometimes you still need to go the custom route.
You could turn on moderation for those Business Profile types, and only approve one listing per user. But, I would suspect that some users might actually have more than one business.
The taxonomy system in Drupal is one of it's most powerful features.
Let us know what you end up going with.
There are a number of new
There are a number of new permissions modules you may want to investigate. While I haven't used them, you may want to investigate them
Both of these appear to have the potential you are looking for in different ways.
http://drupal.org/project/node_privacy_byrole
http://drupal.org/project/taxonomy_access
-sp
---------
Test site...always start with a test site.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide