drupal-rules

How to grant user User Points equal to certain field's value / calculated value?

▼魔方 西西 提交于 2019-12-08 06:08:51
问题 I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field . I tried solving the first part of my problem with the Rules module like this: *Event: A node has been flagged, under "Publish Content and grant points to user" *Conditions: Content is of type 'Content' *Actions: Grant

How to create a Drupal rule to check (on cron) a date field and if passed set field “status” to “ended”?

孤街醉人 提交于 2019-11-27 14:10:15
问题 I'm trying to create a custom rule (using the Rules module) so that every time the cron runs, this rule checks a date field in a custom content type I created. If that date has passed then I want to set a list widget from active to ended . This is how far I get when trying to create this rule: Set React on event to Cron maintenance tasks are performed Add Condition > Set Select the condition to add to Data comparison > Continue Here is the issue: Data selectors only has site and no access to