Automated role assignment
mariusooms - July 10, 2008 - 23:42
| Project: | Rolespecific Node |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Lapino |
| Status: | closed |
Jump to:
Description
Hi...I'm close to having what I need, but not just yet. This module is doing its job, but I was hoping you could implement two features.
One: I'm using the Auto Assign Role module (dp6 version) which allows assigning roles at registration through user input. However Rolespecific Node is not aware of these assigned roles. If I do it manually in the admin it does work, but I need for every registered user a node to be created.
Two: It seems this module is not tapping into pathauto.
How feasible are these requests?
Kind regards,
Marius

#1
The first one: I thought this would be quite easy, by just having the module hook act on registration too, but it appears to be a bit more complicated, but it's certainly possible, I'll look into it this weekend.
The second one: what do you mean exactly?
#2
For step 2...Currently I have a content-type called 'profile'. I have the following pattern setup with Pathauto: profile/[author-name-raw]. Then I have Rolespecific Node assigned to this content-type. Finally when I assign a user the associated role under User Management it does indeed create the published node, but the Pathauto pattern alias is not created. Only the normal node url is created e.g. node/34, where 34 is just an example off course. Does that make sense? I'm not sure if you are familiar with Pathauto, I think almost ever Drupal user does. It could very well be that I'm overlooking something else.
As far as step 1...that's the most important one as it would really safe me. The following link is the dp6 patch for that specific module in case you need to see how to hook or something.
http://drupal.org/node/228774#comment-894826
Thanks for keeping this module going. Looking forward to more features in the future and a official release.
Regards,
Marius
#3
I created two seperate issues for this, as this contains two requests:
#281791: Compatibility with Auto Assign Role
#281792: Compatibility with pathauto
Marking this one as fixed.
#4
Automatically closed -- issue fixed for two weeks with no activity.