A
A
Alexander Bykovsky2015-02-06 20:33:27
MODX
Alexander Bykovsky, 2015-02-06 20:33:27

Wayfinder[REVO]. Displaying the menu in a table. How to make Parent and Child be in adjacent cells of a row?

Good afternoon. I'm trying to display a two-level menu, but the essence is that two levels (parent, child) should be in the same row of the table, but in two adjacent cells.
Those. the structure is like this:

parent-01
child-01-01
child-01-02
child-01-03
parent-02
child-02-01
parent-03
child-03-01

The output should have the following code:
<table>
<tr>
<td>parent-01</td>
<td>child-01-01
child-01-02
child-01-03</td>
...
</tr>
</table>

Or like in the picture36ae725c66934eb98682dbc3d04a6118.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Tokarev, 2015-02-26
@Vadiok

Haven't tested it, but probably something like this:


Instead of , perhaps some other field should be displayed. I advise you to use pdoMenu
instead of Wayfinder , it works much faster, its syntax is the same, except for the inline code:
<!-- Wayfinder -->
`@CODE:<code>...</code>`
<!-- pdoMenu -->
`@INLINE <code>...</code>`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question