You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @swapnilbanga ..after looking into this, I realize that you are right; the KnpMenu library doesn't include a way to easily specify the root element of a list outside of the Twig context. So, I created one.
I'm releasing a new version of TOC later today (v2.1) that fixes this, and allows you call: TocGenerator::getOrderedHtmlMenu() instead of TocGenerator::getMenu()
Note: v2.1 of the library requires PHP 7.1+, so if you're still on PHP5, you'll need to upgrade (or implement the changes yourself).
Right now, the default formatter spits out [ul] lists. It is difficult to change this on-the-fly, so it should be a function parameter.
The text was updated successfully, but these errors were encountered: