Maybe I’m a bit confused about Modx... Simpler question: Can I show sublevel menu in the modxhost default javascrit menu?
Thanks.
sanbe,
I think that menu only supports 2 levels, in the default it has a startId of 0, so it shows all documents with a parent of 0 and there children when an item is hovered.
-
☆ A M B ☆
- 24,524 Posts
When you use a startId of 0 in Ditto or Wayfinder, that means it will work with all the documents in the "root" of the Document Tree. In other words, those documents have no parent.
The Ditto call for that template shows all top level documents, and the dropdown will show their immediate children.
If you’ve created a new document under one of those top-level documents, its children will not show in the menu, but it itself will. If you created it under one of the second-level documents, it won’t show at all.