Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Reapeat Region Horizontally

New Here ,
Aug 18, 2008 Aug 18, 2008

Copy link to clipboard

Copied

How do I make a "repeat region" display horizontally?
TOPICS
Server side applications

Views

183
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 19, 2008 Aug 19, 2008

Copy link to clipboard

Copied

LATEST
Depending on how many items you want to display, and depending on the length of the table... (For this example, I am using 4 items, with a table width of 100%)

<div align = "center" spry:region="ds1">
<table width = 100%>
<tr>
<td width = 25% spry:repeat="ds1" spry:setrow="ds1"> {item}</td>
</tr>
</table>
</div>

Basically, you have the DIV which is the main region. Each <td> cell is repeated until the EOF from the ds1 datasource.

PS: I just found out how to do this today, after a lengthy time of troubleshooting. I finally gave up, started working on something else, and messed up some code. Didn't realize it before I uploaded the page to view, saw it, and was like.. huh? Looked at my code, and had a.. bang head on desk moment

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines