Copy link to clipboard
Copied
Hi all,
I've got to make a repeat region but with a difference!
Basically I want to turn the HTML below into Dinamic PHP/mySQL. But the structure has to remain the same, so each <li> tag must contain 3 rows.
<ul>
<li>
<a href="thanks.html"><img src="../Images/slides/slide1.jpg" width="304" height="186" alt="photography" /></a>
<a href="branding.html"><img src="../Images/slides/slide2.jpg" alt="Design" width="304" height="186" hspace="6" /></a>
<a href="nice.html"><img src="../Images/slides/slide3.jpg" alt="Design" width="304" height="186" /></a>
</li>
<li>
<a href="thisis.html"><img src="../Images/slides/slide4.jpg" width="304" height="186" alt="Website and Graphics" /></a>
<a href="hello.html"><img src="../Images/slides/slide5.jpg" width="304" height="186" alt="Design and Photography" hspace="6" /></a>
<a href="yes.html"><img src="../Images/slides/slide6.jpg" width="304" height="186" alt="Website and Photography" /></a>
</li>
</ul>
I know how to make a repeat region but I don't know how to tell it to include 3 rows in each repeat region. Does this make sense.
Thanks for any help
T
Copy link to clipboard
Copied
There's no twist to your request. What's the problem? Repeat the region and add dynamic values just like you would do in any repeat region situation.
<ul>
REPEAT REGION CODE START HERE
<li>
<a href="DYNAMIC VALUE"><img src="DYNAMIC VALUE" width="304" height="186" alt="DYNAMIC VALUE" /></a>
<a href="DYNAMIC VALUE"><img src="DYNAMIC VALUE" alt="DYNAMIC VALUE" width="304" height="186" hspace="6" /></a>
<a href="DYNAMIC VALUE"><img src="DYNAMIC VALUE" alt="DYNAMIC VALUE" width="304" height="186" /></a>
</li>
REPREAT REGION CODE END HERE
</ul>
Copy link to clipboard
Copied
@the_shocker - Surely, it would show the same Dynamic value three times within the <li> value, as you are not repeating it within the <li>, you're just repeating the <li> itself.
@bregent - I'm not sure what a horizontal looper is but I'll check it out and let you know.
Cheers for your help though.
Copy link to clipboard
Copied
I could be misinterpreting, but it sounds like you are looking for a horizontal looper. You need to either code this yourself with a nested loop, or use an extension like this: http://tom-muck.com/extensions/help/HorizontalLooper/