• Resolved jcbousignac

    (@jcbousignac)


    Hello,

    I want to create conditions in a PODS template, in order to list the staff of an agency.
    I created 2 pods:
    – agency (content), with a relational field “personnel_agency” to the staff
    – staff (content), with a relational field “agency” to “agency”

    Here is the code:
    <h2>Personnel list {@post_title}</h2>
    [each personnel_agency]
    [before]

    [/after]
    [/each]

    The result shows the staff well, but the list repeats itself infinitely like this!

    John Doe
    Gi Joe
    John Doe
    Gi Joe
    John Doe
    Gi Joe
    John Doe
    Gi Joe
    John Doe
    Gi Joe
    ….

    I start my experience with Mods, would you have an idea or a solution?
    Should I transform the agency pods into taxonomy to solve the problem?

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Infinite loop with conditions in a Pods Template’ is closed to new replies.