Display repeat region horizontally
Is the only way for dreamweaver to display a repeat region vertically? Is there a way to set it to display records horizontally?
Is the only way for dreamweaver to display a repeat region vertically? Is there a way to set it to display records horizontally?
DataAssist includes a repeat selection server behavior that you can apply inside a repeat region in order to get it to display both vertically and horizontally.
This generates 4 columns in the first row. But, only 3 columns and a blank column at the end of each of the following rows till the end of the recordset. Am I missing something?
<div class='section group' style="background:#FFFFFF;">
<?php
$wa_startindex = 0;
while(!$Recordset1->atEnd()) {
$wa_startindex = $Recordset1->Index;
?>
<div class="col span_1_of_4" align="center" style="background-color: #fff;">
<div class="storebox"> <a href="furnituredetail.php?prodID=<?php echo($Recordset1->getColumnVal("prodID")); ?>"><img src="storepix/<?php echo($Recordset1->getColumnVal("prodID")); ?>.jpg" alt="" style="border:solid #333 0px; max-width:14.0625em; max-height:14.0625em;"></a><br />
<span class="bodytext"> <b><a href="<?php echo($Recordset1->getColumnVal("prodName")); ?>"><?php echo($Recordset1->getColumnVal("prodName")); ?></a></b><br>
<?php echo($Recordset1->getColumnVal("prodPricedesc")); ?></span><br />
</div></div>
<?php
$Recordset1->moveNext();
}
$Recordset1->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>
</div>
What is DataAssist.
Please post a URL so I can view the page. It may be a CSS issue or something with the content, or even something in the database. If you could provide a URL and FTP information then I could fully debug this issue. I don't see any problems with the code you have provided.
So if I had 10 items to display, I could have 2 rows of 5? I have tried this and only get the top row back.
See Tom Muck's solution: index.cfm
disclaimer: only a user
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.