{"action":"created","issue":{"url":"https://api.github.com/repos/n2cms/n2cms/issues/626","labels_url":"https://api.github.com/repos/n2cms/n2cms/issues/626/labels{/name}","comments_url":"https://api.github.com/repos/n2cms/n2cms/issues/626/comments","events_url":"https://api.github.com/repos/n2cms/n2cms/issues/626/events","html_url":"https://github.com/n2cms/n2cms/issues/626","id":60405590,"number":626,"title":"Using TemplateFirst, adding RestrictChildren does not work, v2.6.8.3","user":{"login":"lisamariet","id":5948299,"avatar_url":"https://avatars.githubusercontent.com/u/5948299?v=3","gravatar_id":"","url":"https://api.github.com/users/lisamariet","html_url":"https://github.com/lisamariet","followers_url":"https://api.github.com/users/lisamariet/followers","following_url":"https://api.github.com/users/lisamariet/following{/other_user}","gists_url":"https://api.github.com/users/lisamariet/gists{/gist_id}","starred_url":"https://api.github.com/users/lisamariet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisamariet/subscriptions","organizations_url":"https://api.github.com/users/lisamariet/orgs","repos_url":"https://api.github.com/users/lisamariet/repos","events_url":"https://api.github.com/users/lisamariet/events{/privacy}","received_events_url":"https://api.github.com/users/lisamariet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-09T20:36:20Z","updated_at":"2015-03-09T21:56:25Z","closed_at":null,"body":"On a clean install of v. 2.6.8.3 \r\nI just added this line to the Container.cshtml file in Content.Define:\r\n\r\n`re.RestrictChildren(\"News\");`\r\n\r\nWhen I try to add new under Container in N2.. there is no items to choose from. It says: Nothing can be created here. "},"comment":{"url":"https://api.github.com/repos/n2cms/n2cms/issues/comments/77952073","html_url":"https://github.com/n2cms/n2cms/issues/626#issuecomment-77952073","issue_url":"https://api.github.com/repos/n2cms/n2cms/issues/626","id":77952073,"user":{"login":"lisamariet","id":5948299,"avatar_url":"https://avatars.githubusercontent.com/u/5948299?v=3","gravatar_id":"","url":"https://api.github.com/users/lisamariet","html_url":"https://github.com/lisamariet","followers_url":"https://api.github.com/users/lisamariet/followers","following_url":"https://api.github.com/users/lisamariet/following{/other_user}","gists_url":"https://api.github.com/users/lisamariet/gists{/gist_id}","starred_url":"https://api.github.com/users/lisamariet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisamariet/subscriptions","organizations_url":"https://api.github.com/users/lisamariet/orgs","repos_url":"https://api.github.com/users/lisamariet/repos","events_url":"https://api.github.com/users/lisamariet/events{/privacy}","received_events_url":"https://api.github.com/users/lisamariet/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T21:56:25Z","updated_at":"2015-03-09T21:56:25Z","body":"That does not compile. There is no NewsPage class in the template solution.\nThe News.cshtml page is just defined in template view.\n\nOn Monday, March 9, 2015, Ben Herila <notifications@github.com> wrote:\n\n> try something like RestrictChildren(typeof(NewsPage))\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/n2cms/n2cms/issues/626#issuecomment-77949800>.\n>\n\n\n-- \n\n\n-----------------------------------------------------\nemail: lisamariet@gmail.com\n"}}