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

Repeat Region with a twist

Explorer ,
Dec 01, 2011 Dec 01, 2011

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

TOPICS
Server side applications

Views

845
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
Dec 02, 2011 Dec 02, 2011

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>

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
Explorer ,
Dec 04, 2011 Dec 04, 2011

Copy link to clipboard

Copied

LATEST

@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.

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
LEGEND ,
Dec 02, 2011 Dec 02, 2011

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/

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