For me includeDocs stops working after updating.
MODx 2.0.4 pl2
-
☆ A M B ☆
- 1,780 Posts
includeDocs is still broken apparently. I saw one post from five years ago, and this now, nearly two years old the last post.
I'll scour the forum, but it seems like this would have been addressed by now. Is it not broken for others? I never had reason to try it till now, but it indeed breaks the whole menu if the parent isn't part of the menu. startId seems to start the menu with a title, but does not include it as a link (why would this happen? It is not occuring in the main menu, but that's using startId = 0. ). Since it's not linked (startID), I wanted to include the actual start container with includeDocs parameter. But since the parent isn't in the menu, no includeDocs. Kinda catch 22 here.
-
☆ A M B ☆
- 24,524 Posts
If you want the parent to be part of the menu, a little juggling of the chunk/tpls is needed.
Use the StartItemTpl to start the unordered list, and include the first li item of the startItem's link. Add the wf.wrapper and leave it open.
In the OuterTpl, just have the wf.wrapper and the closing ul, leave out the opening ul.