repeat region + looper region?


ho all,

 

i have recordset show records found in way:

 

  • main category1
    • sub category1.1
      • category1.1.0
        • item 1.1.1
        • item 1.1.2
        • item 1.1.3
        • item 1.1.4
        • item 1.1.5
  • main category1
    • sub category1.2
      • category1.2.0
        • item 1.2.1
        • item 1.2.2
        • item 1.2.3
        • item 1.2.4
        • item 1.2.5
        • item 1.2.6
        • item 1.2.7

 

but  obtain similar this:

main category1
sub category1.1
category1.1.0
item 1.1.1item 1.1.2item 1.1.3
item 1.1.4item 1.1.5
main category1
sub category1.2
category1.2.0
item 1.2.1item 1.2.2item 1.2.3
item 1.2.4item 1.2.5item 1.2.6
item 1.2.7

 

is there way include looper region inside repeat region?

 

tia

 

tony

hi tony,

 

so when repeat region assuming talking nested repeat region.

 

you create nested repeat region displays:

 

 

main category1

     sub category1.1

          category1.1.0

      • item 1.1.1
      • item 1.1.2
      • item 1.1.3
      • item 1.1.4
      • item 1.1.5

 

now on item code wrapped a

 

do { //nested repeat

  echo $row_detail2['item'];

} while ($row_detail2 = mysql_fetch_assoc($detail2)); //nested move next

 

remove line:

do { //nested repeat

and while line

} while ($row_detail2 = mysql_fetch_assoc($detail2)); //nested move next

 

leaving echo:

echo $row_detail2['item']; // please note part may have table code or comma code. leave - example understand concept.

 

now go design mode , select "item" (if done correctly see nested repeat region tag gone).

 

highlight item line , add horizontal looper using horizontal looper wizard.

 

now if done normal "repeat region" , not "nested repeat region" have done different.

 

hope helps



More discussions in Dreamweaver Development Toolbox General Discussion (read only)


adobe

Comments

Popular posts from this blog

Help with codes to add 1 more shift register and add more to matrix LED

tcp client

Can't read sms using Thinker A7 communicate with Arduino