Using bx_repeat

I have a template form I am working on.

 

<div>

<bx_repeat:data>

data set one results

</bx_repeat:data>

</div>

 

<div>

<bx_repeat:data>

data set two results

</bx_repeat:data>

</div>

 

I am getting some strange results; it is putting part of the data set one results down in the second division.

 

Is this possibly a parsing bug that is is not seeing the first closing of the bx_repeat?  Both data set one keys and data set two keys are being pulled from the database in the same function, I just want to separate out the data in two different divisions on the page.

Geeks, making the world a better place
Quote · 24 Feb 2015

Your data set one result is using the same repeat name. <bx_repeat:data> unless of course you did not provide accurate code in your example.

If you need 2 sections with different results, then each sections data must be in it's own array, and each repeat section must be a different name.

<div>
<bx_repeat:data_set_one_unique_name1>
data set one results
</bx_repeat:data_set_one_unique_name1>
</div>

<div>
<bx_repeat:data_set_one_unique_name2>
data set two results
</bx_repeat:data_set_one_unique_name2>
</div>

https://www.deanbassett.com
Quote · 24 Feb 2015

Yes, I created a new bx_repeat to handle what I need.  I did try searching on bx_repeat but did not turn up a lot of information.  I guess this is one of those instances where you learn by trial and error.

Thanks Deano.

Geeks, making the world a better place
Quote · 24 Feb 2015

Actually. even i screwed up the example i provided. I forgot to match the closing tag name with the open tag name which i edited to correct that mistake. You could check that to make sure your close matches the name of the open.

https://www.deanbassett.com
Quote · 24 Feb 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.