{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/8024","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8024/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8024/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8024/events","html_url":"https://github.com/joomla/joomla-cms/pull/8024","id":110041456,"number":8024,"title":"Add plugin events to com_contact (redo)","user":{"login":"Harmageddon","id":1410135,"avatar_url":"https://avatars.githubusercontent.com/u/1410135?v=3","gravatar_id":"","url":"https://api.github.com/users/Harmageddon","html_url":"https://github.com/Harmageddon","followers_url":"https://api.github.com/users/Harmageddon/followers","following_url":"https://api.github.com/users/Harmageddon/following{/other_user}","gists_url":"https://api.github.com/users/Harmageddon/gists{/gist_id}","starred_url":"https://api.github.com/users/Harmageddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harmageddon/subscriptions","organizations_url":"https://api.github.com/users/Harmageddon/orgs","repos_url":"https://api.github.com/users/Harmageddon/repos","events_url":"https://api.github.com/users/Harmageddon/events{/privacy}","received_events_url":"https://api.github.com/users/Harmageddon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/joomla/joomla-cms/milestones/7","html_url":"https://github.com/joomla/joomla-cms/milestones/Joomla!%203.5.0","labels_url":"https://api.github.com/repos/joomla/joomla-cms/milestones/7/labels","id":944889,"number":7,"title":"Joomla! 3.5.0","description":"","creator":{"login":"rdeutz","id":467356,"avatar_url":"https://avatars.githubusercontent.com/u/467356?v=3","gravatar_id":"","url":"https://api.github.com/users/rdeutz","html_url":"https://github.com/rdeutz","followers_url":"https://api.github.com/users/rdeutz/followers","following_url":"https://api.github.com/users/rdeutz/following{/other_user}","gists_url":"https://api.github.com/users/rdeutz/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeutz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeutz/subscriptions","organizations_url":"https://api.github.com/users/rdeutz/orgs","repos_url":"https://api.github.com/users/rdeutz/repos","events_url":"https://api.github.com/users/rdeutz/events{/privacy}","received_events_url":"https://api.github.com/users/rdeutz/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":552,"state":"open","created_at":"2015-01-21T08:12:44Z","updated_at":"2016-02-15T09:45:50Z","due_on":"2016-02-16T23:00:00Z","closed_at":null},"comments":26,"created_at":"2015-10-06T15:56:56Z","updated_at":"2016-02-15T11:12:17Z","closed_at":"2015-10-26T19:50:32Z","pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/8024","html_url":"https://github.com/joomla/joomla-cms/pull/8024","diff_url":"https://github.com/joomla/joomla-cms/pull/8024.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/8024.patch"},"body":"This is a redo of #3630, using the current staging branch and with some improvements.\r\n\r\n### Contents\r\nThis PR implements the following plugin events for plugins (group: content):\r\n\r\nEvent | Views\r\n------- | -------\r\nonContentPrepare |<ul><li>contact</li><li>category (for category title, category description and every contact)</li></ul>\r\nonContentAfterTitle |<ul><li>contact</li><li>category (for every contact)</li></ul>\r\nonContentBeforeDisplay |<ul><li>contact</li><li>category (for every contact)</li></ul>\r\nonContentAfterDisplay |<ul><li>contact</li><li>category (for every contact)</li></ul>\r\n\r\n### Testing instructions\r\n\r\n1. Install the patch.\r\n2. If you don't have any plugin installed that targets com_contact, nothing should change in any view (especially in the com_contact views).\r\n3. Install a content plugin that uses the events mentioned above in com_contact.\r\n  You can either write a new one, modify one of the existing content plugins, or use [this small plugin for testing purposes](https://github.com/Harmageddon/plg_contact_events).\r\n4. Make sure that the plugin works in the desired way.\r\n5. Please test Beez (default and encyclopedia layout), too!"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/184169615","html_url":"https://github.com/joomla/joomla-cms/pull/8024#issuecomment-184169615","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8024","id":184169615,"user":{"login":"wilsonge","id":1986000,"avatar_url":"https://avatars.githubusercontent.com/u/1986000?v=3","gravatar_id":"","url":"https://api.github.com/users/wilsonge","html_url":"https://github.com/wilsonge","followers_url":"https://api.github.com/users/wilsonge/followers","following_url":"https://api.github.com/users/wilsonge/following{/other_user}","gists_url":"https://api.github.com/users/wilsonge/gists{/gist_id}","starred_url":"https://api.github.com/users/wilsonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilsonge/subscriptions","organizations_url":"https://api.github.com/users/wilsonge/orgs","repos_url":"https://api.github.com/users/wilsonge/repos","events_url":"https://api.github.com/users/wilsonge/events{/privacy}","received_events_url":"https://api.github.com/users/wilsonge/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T11:12:17Z","updated_at":"2016-02-15T11:12:17Z","body":"Thankyou! I have left this up on my laptop and will have code to fix it on the way home from work this evening!"}}