Loop on the loop ?
-
Hi,
I tryed to add one loop into an other loop, but the resulst is… special !
<ul> [loop type="page" parent="test"] <li>[field title]</li> [loop type="page" parent="{slug}"] <li>[field title]</li> [/loop] [/loop] </ul>
Only the [field title] of the “parent” page are displayed… and [/loop] after the last element.
The next loop is functional, and the slug is printed on the page normaly.
<ul> [loop type="page" parent="subject1"] <li>{slug}</li> [/loop] </ul>
Off course, the test page have child and the slug are correctly identified, but not in the second loop.
An idea ?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Loop on the loop ?’ is closed to new replies.