I have two entry types 'pipeline' (structure) and 'series' (channel). I know I can add children in a structure, but I want to keep 'pipeline' and 'series' separate to avoid duplication, as a series can belong to multiple pipelines.

I assign a series to a pipeline with a field type Entries field.

As an example I assign 'series1' to 'pipeline1' and 'pipeline2'.

What I'd like to know:

a) Is it possible for 'series1' to know it is assigned to 'pipeline1' and 'pipeline2'?

b) If it's not possible, is there a way to update the series entry when assigning to a pipeline?

Thanks for any help!


You could use the relatedTo param (docs).

{% set relatedPipelines = craft.entries()
    .all() %}

Would return pipelines (if any) related to your series1.

  • Thanks, works perfectly!
    – sput
    Mar 18 '20 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.