so i have a get resources call where it returns objects (lets say 10 objects)
for example sake we'll make them paragraphs
<p> Object one </p>
<p> Object two </p>
<p> Object three </p>
etc..
every 2 objects I want to wrap a DIV around them...
< div >
<p> Object one </p>
<p> Object two </p>
</div>
<div>
<p> Object three </p>
< /div >
how can I do this?
note: I am already using templates for Even and Odd.
my real structure is like
Left | Right
Left | Right
and i want to wrap a div around each left and right object
div - Left | Right - end div
etc..
I think you need to use the &tpl_nN parameter. It is a standard parameter of getResources, check the documentation.
right but I need to insert something "between" nth templates..
because its a "wrap" of a div I can't just have the first call do a <div> and the second do a </div> which would complete a wrap because if i had odd number of objects it would just start the wrap but not finish it.