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.
Is there a way to find a node I created in a previous rule (according to logged in user)? I added a user reference to that node if that helps.
Comments
Comment #1
mitchell CreditAttribution: mitchell commentedI think there was another issue about this. Working on other stuff atm, otherwise would search for you. Good luck.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks, I'll keep looking and post if I find anything..
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAnyone ever figure this out? :) Gonna try work on this..
Comment #4
firfin CreditAttribution: firfin commentedI think you can use rule sets for this? Found under components.
rules should get the provided variables from earlier rules (in the same rule set)
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedI don't think I've used rulesets before. Can the variables be found and applied to two completely different actions that are performed at different times? (create and edit for example)
Comment #6
firfin CreditAttribution: firfin commentedRule Sets are sets or rules which are executed in sequence. They are a type of rules component.
The whole sets is executed by a 'normal' or triggered rule. Or by VBO or scheduled rule.
Check out the extensive help for rules (and the tiny guide to rules)
I suggest you spend some time reading the documentation pages, believe me you'll thank yourself for the time spend.
You could try to store a variable (in the entity?) until it is needed? Or maybe try a sheduled rule in the rule set? Or select the previous content using views.
There are loads of possibilities I can imagine. But it all depends on your use-case. Either way, rtfm ;)
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedI used to write manuals for a living ;) But yes I'll read it this time and let you know, thanks..
Comment #8
TR CreditAttribution: TR commentedNo further follow-up from the original poster, and the original poster no longer has a drupal.org account. So I'm assuming this was answered satisfactorily and marking this as fixed.
Comment #9
TR CreditAttribution: TR commented