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.
I've been poking round with Transformations for about an hour, and have built a couple of basic transformations, however I can't work out how to loop over a set of nodes. Is there any possibility of some basic documentation on how to use this module (which looks excellent but is complicated!).
Comments
Comment #1
jpetso CreditAttribution: jpetso commentedYes, totally. Documentation is one of the three tasks left for a more stable release (alpha3 is now kinda "outdated" given the intrusive changes in CVS since then), I'm paid to produce some docs so those should be available in the next two weeks or sooner (together with a new release).
Comment #2
xtfer CreditAttribution: xtfer commentedThats great to hear and thanks for quick reply.
I have been nesting pipelines to manage looping behaviours (which I'm guessing was the intended behaviour), but I'm having trouble working out what for-each expects when firing a Pipeline with a "node load" (for example) in it. An explanation of some of these behaviours would be welcome. =)
Comment #3
jpetso CreditAttribution: jpetso commentedOk, I'll remember to explain that. Essentially, a for-each operation expects the same set of inputs that the inner operation (here: pipeline) takes, except for the "list input" which is not a single item but a list to be iterated. In other words, if you have a pipeline taking an "nid" input for the "node load" operation, a for-each operation using that pipeline would take a list (array, iterator, ...) of "nid" values when "nid" is configured as list input.
Comment #4
xtfer CreditAttribution: xtfer commentedBrilliant. Thanks. I shall keep trying.