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

jpetso’s picture

Yes, 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).

xtfer’s picture

Thats 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. =)

jpetso’s picture

Ok, 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.

xtfer’s picture

Brilliant. Thanks. I shall keep trying.