silverstripe-australia/silverstripe-groupedcmsmenu — pull request #6 by stevie-mayhew (2014-12-03 22:21:12+00:00)
Title: UPDATE: change the way which yml is configured to allow the menu to be m...

...ore easily expressed

This changes the way the menu is expressed in yml. The changes make it easier to lay out the menu as it will appear in the CMS. I've also reverted some changes to the layout which broke the menu from the update commits, specifically not including the icon as there is never any generated for the code used and a bit of padding for large menu names.

Previously yml would look like this:

```yml
---
Name: 'cmsmenu'
After: 'cms/*', 'framework/*'
---

LeftAndMain:
menu_groups:
PageAccessLevelAdmin: Settings
SecurityAdmin: Settings
CMSSettingsController: Settings

BlogPostAdmin: Articles & Posts
BlogFeaturedAdmin: Articles & Posts
TechArticleAdmin: Articles & Posts
TechHolderAdmin: Articles & Posts

ForumAdmin: Forum
ReportedPostsAdmin: Forum

WebinarAdmin: Webinars
ArchivedWebinarAdmin: Webinars

CommentAdmin: Data Management
TestimonialAdmin: Data Management
FAQAdmin: Data Management
CommonQuestionAdmin: Data Management
ContactAdmin: Data Management
MemberAdmin: Data Management

AboutAdmin: Page Management
LandingPageAdmin: Page Management
HomeAdmin: Page Management
TermsConditionsAdmin: Page Management
PrivacyAdmin: Page Management

CourseAdmin: Courses
CourseFilterAdmin: Courses
```

With these changes it allows you to instead have it look like this:
```yml
---
Name: 'cmsmenu'
After: 'cms/*', 'framework/*'
---

LeftAndMain:
menu_groups:
Settings:
- PageAccessLevelAdmin
- SecurityAdmin
- CMSSettingsController
'Articles & Posts':
- BlogPostAdmin
- BlogFeaturedAdmin
- TechArticleAdmin
- TechHolderAdmin
Forum:
- ForumAdmin
- ReportedPostsAdmin
Webinars:
- WebinarAdmin
- ArchivedWebinarAdmin
'Data Management':
- CommentAdmin
- TestimonialAdmin
- FAQAdmin
- CommonQuestionAdmin
- ContactAdmin
- MemberAdmin
'Page Management':
- AboutAdmin
- LandingPageAdmin
- HomeAdmin
- TermsConditionsAdmin
- PrivacyAdmin
Courses:
- CourseAdmin
- CourseFilterAdmin
```