symfony-cmf / simple-cms-bundle

UNMAINTAINED - A more-than-simple cms based on the cmf components
http://cmf.symfony.com/
49 stars 45 forks source link

empty label means this page can not be displayed as menu item #124

Closed dbu closed 10 years ago

dbu commented 10 years ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #112
License MIT
Doc PR not needed

this was the best solution i found. we only display the menu node if the display option is true and there is a label. this way display can default to true and the user can unset it to hide the menu, or edit the label and it starts appearing.

the only wtf would be when he adds a label and had set display to false previously. but whatever, that really is an edge case.