Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all
This might be a duplicate of all other rules flag problem. I would like to have the reaction Node is flagged in the 8 version.
Comments
Comment #2
Marcus 78 CreditAttribution: Marcus 78 commentedMy bad its under after saving new flagging.
Comment #3
Marcus 78 CreditAttribution: Marcus 78 commentedComment #4
socketwench CreditAttribution: socketwench commentedIt happens!
Comment #5
SuperStes CreditAttribution: SuperStes commentedHey Marcus, I am having the same kind of trouble. I was used to Drupal 7 where I could start a rule on the event of a node being flagged.
Now in Drupal 8, I am lost... What I want to do is quite simple in itself: when a node is flagged, I want to fill a field of that node with a certain fixed value.
* I got the rule started with "after saving new flagging". If I take only this event and use a "display message" as an action, the rules works and the message is displayed.
* If I add a condition "entity is of bundle" to specify the flag, the rule still works, the message is still displayed.
* Even if I add an action "set a date value" and I choose "flagging.flagged_entity.entity.title.value" as data, I can set the title of the node to whatever I want.
I cannot, however, select the field I wanna fill... I know I have to add a condition "entity is of bundle" first, but it does not work. Whenever I try to do so and pick "flagging.flagged_entity" in the data selector, I get an error page after saving the condition...
Is this a bug? Or am I doing something wrong??
Comment #6
SuperStes CreditAttribution: SuperStes commented