Hi folks
Hoping you can point me in the right direction. New to Rules. Seen Handbook, looked here in Groups.
Have a CCK form with a 2-choice selection field (Public vs Members Only) where I would like registered users to be able to choose if the node is created as a public one or viewable by members only.
I have got as far as giving the Rule a Label, selecting an Event (content is going to be saved), selecting the Condition as being related to the CCK field choice of Public and selection that the Action is Publish saved content.
BUT I am at a loss as to how then add the 'condition'(?) where a user selects the Members Only option of that field and then that gets published but with Access Control.
Any ideas folks? Have I explained it well enough?
TIA
Comments
Also Rule Condition for Uid = #
I have also come across another usage case that I would like comment on please.
I would like to add a rule so that if User X (the site owner) adds content (in this case a Drupal node or STORM Note) that I can use a rule to email User Y (the site developer).
I can see where you can add a condition for a user roles but not for User Id.
Am I missing something? Forgive me if I am.
Should also have put that I am using Rules 6.x-1.0 on Drupal 6.12
Still struggling
I am still struggling with both of these queries, folks.
In the second post I also concluded that when a comment is added to a STORM note this does not seem to trigger an email at all.
I have tried 2 rules (1) "after updating existing content" and (2) "after saving new content" (to try and cover my bases).
In both the condition is "User is Admin"/ User:content's author (as the site owner is the Admin as well as the Developer being an Admin) because I couldn't figure out how to make the condition when "User = User:1" or whatever the token ought to be.
Then I have "send a mail to an arbitrary mail address" for both as well.
Am I on the right track?
What I would like to be able to do is when User 1 does anything to the site, let User 3 know and include the url to the node in an email.
I am sure you boffins know exactly how to do this, would you mind sharing please to put me out of my misery?
T.I.A.
Response to original
Response to original post:
The condition you're looking for is Execute custom PHP: "[user:user-id] = 3"
Then for the email action, use content tokens.