{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail-torchbox/issues/19","repository_url":"https://api.github.com/repos/torchbox/wagtail-torchbox","labels_url":"https://api.github.com/repos/torchbox/wagtail-torchbox/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail-torchbox/issues/19/comments","events_url":"https://api.github.com/repos/torchbox/wagtail-torchbox/issues/19/events","html_url":"https://github.com/torchbox/wagtail-torchbox/pull/19","id":142188856,"number":19,"title":"Add marketing landing page","user":{"login":"spapas","id":3911074,"avatar_url":"https://avatars.githubusercontent.com/u/3911074?v=3","gravatar_id":"","url":"https://api.github.com/users/spapas","html_url":"https://github.com/spapas","followers_url":"https://api.github.com/users/spapas/followers","following_url":"https://api.github.com/users/spapas/following{/other_user}","gists_url":"https://api.github.com/users/spapas/gists{/gist_id}","starred_url":"https://api.github.com/users/spapas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spapas/subscriptions","organizations_url":"https://api.github.com/users/spapas/orgs","repos_url":"https://api.github.com/users/spapas/repos","events_url":"https://api.github.com/users/spapas/events{/privacy}","received_events_url":"https://api.github.com/users/spapas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-20T18:23:46Z","updated_at":"2016-03-21T21:44:57Z","closed_at":"2016-03-21T20:26:36Z","pull_request":{"url":"https://api.github.com/repos/torchbox/wagtail-torchbox/pulls/19","html_url":"https://github.com/torchbox/wagtail-torchbox/pull/19","diff_url":"https://github.com/torchbox/wagtail-torchbox/pull/19.diff","patch_url":"https://github.com/torchbox/wagtail-torchbox/pull/19.patch"},"body":"- Add new ``Page`` type (same with ``HomePage``) named ``MarketingLandingPage`` with editable related links to be used instead of the hardcoded ones (who we are, get in touch) that the homepage has. The instance of ``MarketingLandingPage`` should be placed as a child of the root (next to blog index and work index) and be visible in menus.\r\n- Keep ``HomePage`` styling by using same class (``page-homepage``) on body - to do this, the content_type tag is changed to return ``homepage`` for the marketing page. Probably a better solution would be to return the correct content type (``marketinglandingpage``) and change the css for the ``page-marketinglandingpage`` class to be similar to to the ``page-homepage`` - however I don't want to mess with the css.\r\n- Copy the ``HomePage`` template to the ``MarketingLandingPage``  - with some small changes\r\n- Add a background jpg (a photo of a foosball table) for marketing landing page\r\n- Add a ``marketing_only`` flag to blog posts and items. When this is set, these objects will be displayed only on the marketing landing page and not on the home page or the corresponding blog/work index.\r\n- Marketing landing page should contain only blog posts and work items tagged by \"digital marketing\". To do this, we add an optional ``marketing`` flag input to ``work_and_blog_listing`` template tag that filters the returned work items and blog posts by \"digital_marketing\" if set. The marketing landing page template sets the ``marketing`` flag  to ``work_and_blog_listing`` to return only these items and also to list ``marketing_only`` flagged items (which won't be listed in the homepage).\r\n- Add the clients block to marketing landing page: The clients block is a bunch of links contained in the about page. In order to avoid repeating the same rows from the about page, the clients block of marketing we just get the clients from the about page (``get(slug=about)``) and renders them using a partial template (which is also used in the about page for dryness). Notice that the ideal solution for the clients block would be to use a snippet to model that block. This snippet would then be used to both the about page and the marketing landing page. Adding the snippet of course would mean that the existing client entries would be to re-inserted to the database so I preferred to just re-use the existing client rows from \"about\"."},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail-torchbox/issues/comments/199500300","html_url":"https://github.com/torchbox/wagtail-torchbox/pull/19#issuecomment-199500300","issue_url":"https://api.github.com/repos/torchbox/wagtail-torchbox/issues/19","id":199500300,"user":{"login":"gasman","id":85097,"avatar_url":"https://avatars.githubusercontent.com/u/85097?v=3","gravatar_id":"","url":"https://api.github.com/users/gasman","html_url":"https://github.com/gasman","followers_url":"https://api.github.com/users/gasman/followers","following_url":"https://api.github.com/users/gasman/following{/other_user}","gists_url":"https://api.github.com/users/gasman/gists{/gist_id}","starred_url":"https://api.github.com/users/gasman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasman/subscriptions","organizations_url":"https://api.github.com/users/gasman/orgs","repos_url":"https://api.github.com/users/gasman/repos","events_url":"https://api.github.com/users/gasman/events{/privacy}","received_events_url":"https://api.github.com/users/gasman/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T21:44:57Z","updated_at":"2016-03-21T21:44:57Z","body":"All looks good to me! Merged/deployed to staging now - I've created an example Marketing page at https://tbxwagtail-staging.torchboxapps.com/marketing/"}}