To focus our efforts onto a manageable number of packages, this package is
currently not maintained. Security fixes and submitted bug fixes will
still be released, but no new features should be expected. This bundle
might have outdated documentation, there is no support from the CMF team
and you should not expect bugs to be fixed.
If you want to help co-maintaining this package, tell us in a GitHub issue
or in #symfony_cmf of the Symfony devs slack.
You can use Knp Menu Bundle to render a menu of your SimpleCms pages. The default Page document
(Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page) implements the Knp\Menu\NodeInterface
which allows for rendering them as a menu.
Set one or more html attributes to be used when rendering the item (generally the <li> tag)
Set the label text to be used
Set html attributes to be used when rendering the label
Set one or more html attributes to be used on the element containing the children (generally the <ul> tag)
Set html attributes to be used when rendering the link tag
Boolean which determine if the page should be included in menus
Boolean which determines whether children should be added to the menu
If you use Sonata Admin in your project you can edit the menu options
using the MenuOptionsExtension that comes with the Sonata integration
bundle. For more information on how to use it, take a look at the
menu admin documentation