Cyclic dependencies

You can have cycling template dependencies, but only within a single module. So workaround 1 is to merge the modules.

But I think it would be even better to think about breaking the cycling dependency. I have often found that if I have a dependency A <-> B, it makes sense to split this out into the “downstream” and “upstream” parts of the dependencies leading to four templates A_d, A_u, B_d, B_u with dependencies

A_u -> A_d, B_d
B_u -> A_d, B_d
2 Likes