{"action":"created","issue":{"url":"https://api.github.com/repos/rainlab/pages-plugin/issues/92","labels_url":"https://api.github.com/repos/rainlab/pages-plugin/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/rainlab/pages-plugin/issues/92/comments","events_url":"https://api.github.com/repos/rainlab/pages-plugin/issues/92/events","html_url":"https://github.com/rainlab/pages-plugin/issues/92","id":110165674,"number":92,"title":"menuItem viewBag with wrong values","user":{"login":"jBOKA","id":8607110,"avatar_url":"https://avatars.githubusercontent.com/u/8607110?v=3","gravatar_id":"","url":"https://api.github.com/users/jBOKA","html_url":"https://github.com/jBOKA","followers_url":"https://api.github.com/users/jBOKA/followers","following_url":"https://api.github.com/users/jBOKA/following{/other_user}","gists_url":"https://api.github.com/users/jBOKA/gists{/gist_id}","starred_url":"https://api.github.com/users/jBOKA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jBOKA/subscriptions","organizations_url":"https://api.github.com/users/jBOKA/orgs","repos_url":"https://api.github.com/users/jBOKA/repos","events_url":"https://api.github.com/users/jBOKA/events{/privacy}","received_events_url":"https://api.github.com/users/jBOKA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-07T07:17:58Z","updated_at":"2015-10-07T07:47:59Z","closed_at":null,"body":"I'm using the staticMenu component and handle the construction of the menus in custom partials. Now I came across the issue, that the viewBag variables (like cssClass or isExternal) only have \"0\" (string) values.\r\nShouldn't the viewBag be filled with the content from the correponding `menu.yaml` by default?\r\nThe yaml files seems to be alright:\r\n```yaml\r\nname: 'Menu name'\r\nitems:\r\n    -\r\n        title: 'title1'\r\n        nesting: ''\r\n        type: url\r\n        url: 'http://url2'\r\n        code: ''\r\n        reference: ''\r\n        cmsPage: ''\r\n        replace: ''\r\n        viewBag:\r\n            isExternal: '1'\r\n            isHidden: '0'\r\n            cssClass: ''\r\n    -\r\n        title: 'title2'\r\n        nesting: ''\r\n        type: url\r\n        url: 'http://url1'\r\n        code: ''\r\n        reference: ''\r\n        cmsPage: ''\r\n        replace: ''\r\n        viewBag:\r\n            isExternal: '1'\r\n            isHidden: '0'\r\n            cssClass: test\r\n    -\r\n\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27222001-menuitem-viewbag-with-wrong-values?utm_campaign=plugin&utm_content=tracker%2F5771059&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F5771059&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/rainlab/pages-plugin/issues/comments/146104126","html_url":"https://github.com/rainlab/pages-plugin/issues/92#issuecomment-146104126","issue_url":"https://api.github.com/repos/rainlab/pages-plugin/issues/92","id":146104126,"user":{"login":"daftspunk","id":1392869,"avatar_url":"https://avatars.githubusercontent.com/u/1392869?v=3","gravatar_id":"","url":"https://api.github.com/users/daftspunk","html_url":"https://github.com/daftspunk","followers_url":"https://api.github.com/users/daftspunk/followers","following_url":"https://api.github.com/users/daftspunk/following{/other_user}","gists_url":"https://api.github.com/users/daftspunk/gists{/gist_id}","starred_url":"https://api.github.com/users/daftspunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daftspunk/subscriptions","organizations_url":"https://api.github.com/users/daftspunk/orgs","repos_url":"https://api.github.com/users/daftspunk/repos","events_url":"https://api.github.com/users/daftspunk/events{/privacy}","received_events_url":"https://api.github.com/users/daftspunk/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T07:47:59Z","updated_at":"2015-10-07T07:47:59Z","body":"Yes it should, and I am unable to replicate your issue. Perhaps if you supply your custom partials?"}}