Hey all,
Well, as title suggests, I need some help with a complex rule. Here is the what I am trying to accomplish.
On the registration page for new users, I am using profile2, I have a select list, this select list is within a field collection. Based upon the selection from this select list the user might join, one, multiple, or no groups.
Similar questions have been asked over the web, but there seems to be no answers.
I believe I have the bulk of it at least to test a simple version of the rule, before creating a rule set.
Event -> After saving a new profile
Conditions:
-> Entity has field - Parameter: Entity: [profile2], Field: field_pro_obod_grade
AND
-> Data comparison - the above field to one of its values from the list
Action -> Subscribe user to group
User - profile2:user
Group - ???
No matter what I put in for the Group data selector I get the ever popular Drupal error box with the following error:
"The data type of the configured argument does not match the parameter's group requirement."
A google search with that error provides nothing.
I have been at this for a bit too long now. Feel I am sooo close,but without the hand grenade, so it doesn't matter.
Here is part of my dilemma, I need to get this to some people for review and testing before finishing up my presentation for tuesday.
Pulling teh beard out over this one.
Murias
Comments
Yeah, figuring out the right
Yeah, figuring out the right recipe for rules can be a real PITA. I recently built a panels rules page (allows firing a rule from a panels page, with input fields, sort of a webform but without saving any data) to allow a visitor to update the email address in their account if they had certain personal info, and then send the address a login link. I had the damndest time getting the types to match for the actual email address when I wanted to write it into the user record.
Is the group you're working with an Organic Group? If so, did you see this discussion? Looks like you need an OG group entity reference...
http://drupal.org/node/1416742
--Darryl Richman
http://darryl.crafty-fox.com
This is one of the threads I
This is one of the threads I was following, it has the most information.
Finding out that any of my entity relation fields, only have one option... -None-
Murias
Something with Entity?
I am still at this issue. Some gut instinct inside said it was an issue with the groups I was building. Almost. But it lead me in the proper direction.
I spent some $ which I didn't want to spend on drupalize.me (damn they want a bunch for one month). I got my final clue in their last video on the OG subject, when they briefly discuss og references. When editing my Entity Reference field, setting it to OG, and the node accordingly, under the "sort by" and "OG membership type" it seems that there is to be a "reference" field, which is a pull down and help text of "what groups should be referenced". This is completely missing from anywhere I want to create such a field.
Any thoughts on how this could be missing?
This just came up
I saw this on Drupal Planet this morning: http://timonweb.com/drupal-rules-how-book-review
Possibly even better than the book itself is the link found in the first comment at the bottom from Johan Falk (a name you may be familar with if you've seen any of his multitude of Drupal screencasts over at Node One http://nodeone.se/en/learn-drupal), which also reviews this book and provides links to a lot of other Rules info.
--Darryl Richman
http://darryl.crafty-fox.com
Any budget? Get Drunomics
FYI, fago (http://drupal.org/user/16747) just launched a company, Drunomics, and of course there is nobody better to help you figure out this problem. http://drunomics.com/
Their website says "ecommerce" , but its fago, Rules guru++