[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {section name=NS1 loop=array( hash( list, array( 1, 2, 5 ) ), 2 hash( list, array( 'a', 5, 10 ) ), 3 hash( list, array( 5, 10, 20 ) ) )} 4 {$:key}: 5 list: 6 {section name=NS2 loop=$:item.list} 7 {$:item} 8 {delimiter},{/delimiter} 9 {/section} 10 {delimiter} 11 12 13 14 {/delimiter} 15 {/section} 16 17 18 {* Tests if a double loop works with the second loop having the iterator of the first as parameter *} 19 {let nodes_children=hash( 'o', array(), 20 269, array( 270, 271 ), 21 270, array(), 22 271, array() )} 23 {section var=child loop=$nodes_children} 24 nodesChildren['node_{$child.key}'] = [ 25 26 {section var=itm loop=$child} 27 'node_{$itm}' 28 {delimiter},{/delimiter} 29 {/section} 30 ]; 31 32 {/section} 33 {/let}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |