Can you nest loop exists?
-
I was wondering if it was possible to next loop exists. I put together the following very rough code. It’s not particularly elegant, but I wanted to list all child pages, and then for those child pages that had their own children, show those as well. To differentiate the children from the parents, I used a crude table to indent the children (or grandchildren depending on your perspective). I suppose I could put everything into a list, and style the list using CSS, which might be more elegant, but for the moment the following code sent back an error message. Is it not possible to nest a loop exists? If not, is there a better way to accomplish what I’m doing? Lastly, I seem to recall a shortcut for A-Z, does it exist?
[pass list="A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"] [loop exists type="page" parent=this field=alpha value={ITEM}] <h3>{ITEM}</h3> [the-loop] [field title-link]<br/ > [-loop exists parent=this field=area value="Province"] <table> [the-loop] <tr><td style="width: 10%;"> </td><td style="text-align: left;">[field title-link]</td></tr> [/the-loop] </table> [/-loop] [/the-loop] [/loop] [/pass]
- The topic ‘Can you nest loop exists?’ is closed to new replies.