{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe-archive/silverstripe-newsletter/issues/91","repository_url":"https://api.github.com/repos/silverstripe-archive/silverstripe-newsletter","labels_url":"https://api.github.com/repos/silverstripe-archive/silverstripe-newsletter/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe-archive/silverstripe-newsletter/issues/91/comments","events_url":"https://api.github.com/repos/silverstripe-archive/silverstripe-newsletter/issues/91/events","html_url":"https://github.com/silverstripe-archive/silverstripe-newsletter/issues/91","id":64814610,"number":91,"title":"Newsletter Subscriptionform","user":{"login":"Firesphere","id":680570,"avatar_url":"https://avatars.githubusercontent.com/u/680570?v=3","gravatar_id":"","url":"https://api.github.com/users/Firesphere","html_url":"https://github.com/Firesphere","followers_url":"https://api.github.com/users/Firesphere/followers","following_url":"https://api.github.com/users/Firesphere/following{/other_user}","gists_url":"https://api.github.com/users/Firesphere/gists{/gist_id}","starred_url":"https://api.github.com/users/Firesphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firesphere/subscriptions","organizations_url":"https://api.github.com/users/Firesphere/orgs","repos_url":"https://api.github.com/users/Firesphere/repos","events_url":"https://api.github.com/users/Firesphere/events{/privacy}","received_events_url":"https://api.github.com/users/Firesphere/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-03-27T17:39:00Z","updated_at":"2016-10-12T08:38:52Z","closed_at":null,"body":"I'm probably just looking in the wrong place, but is there a way to display a small subscribe-form anywhere on the site?"},"comment":{"url":"https://api.github.com/repos/silverstripe-archive/silverstripe-newsletter/issues/comments/253153326","html_url":"https://github.com/silverstripe-archive/silverstripe-newsletter/issues/91#issuecomment-253153326","issue_url":"https://api.github.com/repos/silverstripe-archive/silverstripe-newsletter/issues/91","id":253153326,"user":{"login":"tungdt-90","id":8186562,"avatar_url":"https://avatars.githubusercontent.com/u/8186562?v=3","gravatar_id":"","url":"https://api.github.com/users/tungdt-90","html_url":"https://github.com/tungdt-90","followers_url":"https://api.github.com/users/tungdt-90/followers","following_url":"https://api.github.com/users/tungdt-90/following{/other_user}","gists_url":"https://api.github.com/users/tungdt-90/gists{/gist_id}","starred_url":"https://api.github.com/users/tungdt-90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tungdt-90/subscriptions","organizations_url":"https://api.github.com/users/tungdt-90/orgs","repos_url":"https://api.github.com/users/tungdt-90/repos","events_url":"https://api.github.com/users/tungdt-90/events{/privacy}","received_events_url":"https://api.github.com/users/tungdt-90/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T08:38:52Z","updated_at":"2016-10-12T08:38:52Z","body":"It's probably too late, but in case anyone need this in the future, here is how I've done it: \r\n\r\nI created an Extension of Page_Controller, and write this function inside the Extension:\r\n```\r\npublic function getNewsletterForm(){\r\n\t$record = SubscriptionPage::get()->First();\r\n\r\n\t$results = new SubscriptionPage_Controller($record);\r\n\r\n        // This is optional, just to generate the form\r\n\tif ($results->Form()) {\r\n\t\t$results->Form()->setTemplate(\"SubscriptionFormFooter\");\r\n\t}\r\n\r\n\treturn $results;\r\n}\r\n```"}}
{"actor":{"display_login":"tungdt-90"}}