如何在使用PyroCMS标记循环时调用另一个对象

Here's how the object looks:

[obj1] => Array
(
    [0] => Array
    (
        [id] => 0
    )
    [1] => Array
    (
        [id] => 1
    )
)
[obj2] => Array
(
    [0] => Array
    (
        [count] => 10
    )
    [1] => Array
    (
        [count] => 20
    )
)

How can I call obj2 from the obj1 loop?

{{ obj1 }}
  {{ id }}
    {{ obj2 }}
      {{ count }}
    {{ /obj2 }}
  {{ /obj1 }}

This format returns the id, but obj2 doesn't return counts. I want find out the right way to iterate through objects and why obj2 doesn't call at all. By the way, I already solved it using the foreach format, so I'll just stick to that if its not solvable.

Using loops through LEX aren't meant to be cross-referenced like that. So it is not possible. If you wanted to be able to do that, you should be merging the two Objects before and then passing them to the View or wherever else you are passing it.