PDA

View Full Version : Repeat a repeat region


Daryl
10-18-2011, 03:44 PM
I have a div which contains several repeat regions which extracts data from a recordset.

How would I set the div to repeat through the recordset?

Dreamweaver says that it doesnt support Nested Repeats....

The div looks like this;

<div class="portfolioItemWrapper">

<div class="thumbHolder pngfix">

<div class="portfolioImgThumb">

<span class="portfolio-zoom-image pngfix"> </span><a href="projects.php?Projects=<?php echo $row_portfolio['ContentPageSetOrder']; ?>"><?php mysql_data_seek($portfolio, 0);
$row_portfolio = mysql_fetch_assoc($portfolio);
?><?php do { ?>
<?php if ($row_portfolio['ContentPageSetParentID'] ==52)
echo $row_portfolio['ContentValue']; ?>
<?php } while ($row_portfolio = mysql_fetch_assoc($portfolio)); ?></a> </div>
<!-- end portfolioImgThumb -->

</div>

<!-- end thumbHolder -->

<h3><a href="projects.php?Projects=<?php mysql_data_seek($portfolio, 0);
$row_portfolio = mysql_fetch_assoc($portfolio);
?><?php echo $row_portfolio['ContentPageSetOrder']; ?>" title="<?php mysql_data_seek($portfolio, 0);
$row_portfolio = mysql_fetch_assoc($portfolio);
?><?php do { ?>
<?php if ($row_portfolio['ContentPageSetParentID'] ==57)
echo $row_portfolio['ContentValue']; ?>
<?php } while ($row_portfolio = mysql_fetch_assoc($portfolio)); ?>"><?php mysql_data_seek($portfolio, 0);
$row_portfolio = mysql_fetch_assoc($portfolio);
?><?php do { ?>
<?php if ($row_portfolio['ContentPageSetParentID'] ==57)
echo $row_portfolio['ContentValue']; ?>
<?php } while ($row_portfolio = mysql_fetch_assoc($portfolio)); ?></a></h3>

<div class="clear"></div>

<?php mysql_data_seek($portfolio, 0);
$row_portfolio = mysql_fetch_assoc($portfolio);
?><?php do { ?>
<?php if ($row_portfolio['ContentPageSetParentID'] ==53)
echo $row_portfolio['ContentValue']; ?>
<?php } while ($row_portfolio = mysql_fetch_assoc($portfolio)); ?> <a href="projects.php?Projects=<?php mysql_data_seek($portfolio, 0);
$row_portfolio = mysql_fetch_assoc($portfolio);
?><?php echo $row_portfolio['ContentPageSetOrder']; ?>" title="Title">Read more...</a>

</div>

Dave Buchholz
10-19-2011, 12:27 AM
this link should help you http://kb2.adobe.com/community/publishing/528/cpsid_52877.html

John Langer
10-20-2011, 02:30 AM
Dave is quite right of course but I find that I don't get this problem if I use the WA repeat region. I think it's part of DataAssist if you have it.