{"action":"created","issue":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1427","labels_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1427/labels{/name}","comments_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1427/comments","events_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1427/events","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/1427","id":109265330,"number":1427,"title":"ProcessModule fails to create page","user":{"login":"Da-Fecto","id":2760993,"avatar_url":"https://avatars.githubusercontent.com/u/2760993?v=3","gravatar_id":"","url":"https://api.github.com/users/Da-Fecto","html_url":"https://github.com/Da-Fecto","followers_url":"https://api.github.com/users/Da-Fecto/followers","following_url":"https://api.github.com/users/Da-Fecto/following{/other_user}","gists_url":"https://api.github.com/users/Da-Fecto/gists{/gist_id}","starred_url":"https://api.github.com/users/Da-Fecto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Da-Fecto/subscriptions","organizations_url":"https://api.github.com/users/Da-Fecto/orgs","repos_url":"https://api.github.com/users/Da-Fecto/repos","events_url":"https://api.github.com/users/Da-Fecto/events{/privacy}","received_events_url":"https://api.github.com/users/Da-Fecto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T09:43:34Z","updated_at":"2015-10-01T10:40:27Z","closed_at":null,"body":"I don't know if this is intended or is a bug, never-the-less I'll report it.\r\nWhen using an install() method in a ProcessModule the page assigned in the getModuleInfo() is ignored. \r\n(not created)\r\n\r\n```php\r\n/**\r\n * When using an install() method\r\n *\r\n */\r\npublic function ___install() { }\r\n\r\n\r\n\r\n/**\r\n * The page to install from getModuleInfo() is ignored\r\n *\r\n */\r\npublic static function getModuleInfo() {\r\n    return array(\r\n        ... etc.\r\n        'page' => array(\r\n            'name' => 'my-page',\r\n            'parent' => 'setup',\r\n            'title' => 'Just a title'\r\n        ),\r\n    );\r\n}\r\n```\r\nPW 2.6.18"},"comment":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/comments/144690764","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/1427#issuecomment-144690764","issue_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1427","id":144690764,"user":{"login":"ryancramerdesign","id":328272,"avatar_url":"https://avatars.githubusercontent.com/u/328272?v=3","gravatar_id":"","url":"https://api.github.com/users/ryancramerdesign","html_url":"https://github.com/ryancramerdesign","followers_url":"https://api.github.com/users/ryancramerdesign/followers","following_url":"https://api.github.com/users/ryancramerdesign/following{/other_user}","gists_url":"https://api.github.com/users/ryancramerdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/ryancramerdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryancramerdesign/subscriptions","organizations_url":"https://api.github.com/users/ryancramerdesign/orgs","repos_url":"https://api.github.com/users/ryancramerdesign/repos","events_url":"https://api.github.com/users/ryancramerdesign/events{/privacy}","received_events_url":"https://api.github.com/users/ryancramerdesign/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T10:40:27Z","updated_at":"2015-10-01T10:40:27Z","body":"Your install method needs to call parent::install(), and the same approach\nfor an uninstall() method, if used.\nOn Oct 1, 2015 5:43 AM, \"Martijn Geerts\" <notifications@github.com> wrote:\n\n> I don't know if this is intended or is a bug, never-the-less I'll report\n> it.\n> When using an install() method in a ProcessModule the page assigned in the\n> getModuleInfo() is ignored.\n>\n> /** * When using an install() method * */public function ___install() { }/** * The page to install from getModuleInfo() is ignored * */public static function getModuleInfo() {    return array(        ... etc.        'page' => array(            'name' => 'my-page',            'parent' => 'setup',            'title' => 'Just a title'        ),    );}\n>\n> PW 2.6.18\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/ryancramerdesign/ProcessWire/issues/1427>.\n>\n"}}