Bonjour,

Je suis confronté à un problème difficile pour moi.
Le voilà.
J'ai la structure suivante, que je ne peux pas modifier (cf. ci-dessous).
Et je dois aus sein d'un template (.pt) faire en sorte de récupérer quelque chose comme ça :

Zope Page Template

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<ul>
  <li><a href="path11" class="menu6">
    <img alt="title11" src="path11.jpg" class="menu1">
    </a>
    <ul>
      <li><a href="subpath111" class="menu7">subtitle111</a></li>
      <li><a href="subpath112" class="menu7">subtitle112</a></li>
      <li><a href="subpath113" class="menu7">subtitle113</a></li>
      <li><a href="subpath114" class="menu7">subtitle114</a></li>
      <li><a href="subpath115" class="menu7">subtitle115</a></li>
    </ul>
  </li>
</ul>
Je ne m'en sort pas !
Le problème est de récupérer, à la fois, le titre et le chemin dans un boucle tal:repeat !!!
Quelqu'un peut-il m'aider ???
MERCI.

Contenu de la liste (Python)

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
liste = 
[
  [ # sub tree 1
    [ # sub sub tree 1
      'title11', 'path11',
      'subtitle111', 'subpath111',
      'subtitle112', 'subpath112',
      'subtitle113', 'subpath113',
      'subtitle114', 'subpath114',
      'subtitle115', 'subpath115',
    ],
    [ # sub sub tree 2
      'title12', 'path12',
      'subtitle121', 'subpath121',
      'subtitle122', 'subpath122',
      'subtitle123', 'subpath123',
      'subtitle124', 'subpath124',
      'subtitle125', 'subpath125',
    ]
  ],
  [ # sub tree 2
    [ # sub sub tree 1
      'title21', 'path21',
      'subtitle211', 'subpath211',
      'subtitle212', 'subpath212',
      'subtitle213', 'subpath213',
      'subtitle214', 'subpath214',
      'subtitle215', 'subpath215',
    ],
    [ # sub sub tree 2
      'title22', 'path22',
      'subtitle221', 'subpath221',
      'subtitle222', 'subpath222',
      'subtitle223', 'subpath223',
      'subtitle224', 'subpath224',
      'subtitle225', 'subpath225',
    ],
    [ # sub sub tree 3
      'title23', 'path23',
      'subtitle231', 'subpath231',
      'subtitle232', 'subpath232',
      'subtitle233', 'subpath233',
      'subtitle234', 'subpath234',
      'subtitle235', 'subpath235',
    ]
  ],
  [ # sub tree 3
    [# sub sub tree 1
      'title31', 'path31',
      'subtitle311', 'subpath311',
      'subtitle312', 'subpath312',
      'subtitle313', 'subpath313',
      'subtitle314', 'subpath314',
      'subtitle315', 'subpath315',
    ]
  ],
]