{"action":"created","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/themedd/issues/103","repository_url":"https://api.github.com/repos/easydigitaldownloads/themedd","labels_url":"https://api.github.com/repos/easydigitaldownloads/themedd/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/themedd/issues/103/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/themedd/issues/103/events","html_url":"https://github.com/easydigitaldownloads/themedd/issues/103","id":251139095,"number":103,"title":"Add page template for creating unique layouts","user":{"login":"amdrew","id":52581,"avatar_url":"https://avatars2.githubusercontent.com/u/52581?v=4","gravatar_id":"","url":"https://api.github.com/users/amdrew","html_url":"https://github.com/amdrew","followers_url":"https://api.github.com/users/amdrew/followers","following_url":"https://api.github.com/users/amdrew/following{/other_user}","gists_url":"https://api.github.com/users/amdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/amdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amdrew/subscriptions","organizations_url":"https://api.github.com/users/amdrew/orgs","repos_url":"https://api.github.com/users/amdrew/repos","events_url":"https://api.github.com/users/amdrew/events{/privacy}","received_events_url":"https://api.github.com/users/amdrew/received_events","type":"User","site_admin":false},"labels":[{"id":378794824,"url":"https://api.github.com/repos/easydigitaldownloads/themedd/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"amdrew","id":52581,"avatar_url":"https://avatars2.githubusercontent.com/u/52581?v=4","gravatar_id":"","url":"https://api.github.com/users/amdrew","html_url":"https://github.com/amdrew","followers_url":"https://api.github.com/users/amdrew/followers","following_url":"https://api.github.com/users/amdrew/following{/other_user}","gists_url":"https://api.github.com/users/amdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/amdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amdrew/subscriptions","organizations_url":"https://api.github.com/users/amdrew/orgs","repos_url":"https://api.github.com/users/amdrew/repos","events_url":"https://api.github.com/users/amdrew/events{/privacy}","received_events_url":"https://api.github.com/users/amdrew/received_events","type":"User","site_admin":false},"assignees":[{"login":"amdrew","id":52581,"avatar_url":"https://avatars2.githubusercontent.com/u/52581?v=4","gravatar_id":"","url":"https://api.github.com/users/amdrew","html_url":"https://github.com/amdrew","followers_url":"https://api.github.com/users/amdrew/followers","following_url":"https://api.github.com/users/amdrew/following{/other_user}","gists_url":"https://api.github.com/users/amdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/amdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amdrew/subscriptions","organizations_url":"https://api.github.com/users/amdrew/orgs","repos_url":"https://api.github.com/users/amdrew/repos","events_url":"https://api.github.com/users/amdrew/events{/privacy}","received_events_url":"https://api.github.com/users/amdrew/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/easydigitaldownloads/themedd/milestones/3","html_url":"https://github.com/easydigitaldownloads/themedd/milestone/3","labels_url":"https://api.github.com/repos/easydigitaldownloads/themedd/milestones/3/labels","id":2708835,"number":3,"title":"1.1","description":null,"creator":{"login":"amdrew","id":52581,"avatar_url":"https://avatars2.githubusercontent.com/u/52581?v=4","gravatar_id":"","url":"https://api.github.com/users/amdrew","html_url":"https://github.com/amdrew","followers_url":"https://api.github.com/users/amdrew/followers","following_url":"https://api.github.com/users/amdrew/following{/other_user}","gists_url":"https://api.github.com/users/amdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/amdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amdrew/subscriptions","organizations_url":"https://api.github.com/users/amdrew/orgs","repos_url":"https://api.github.com/users/amdrew/repos","events_url":"https://api.github.com/users/amdrew/events{/privacy}","received_events_url":"https://api.github.com/users/amdrew/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2017-08-18T04:46:00Z","updated_at":"2017-11-22T08:33:06Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2017-08-18T04:54:40Z","updated_at":"2017-12-14T09:37:59Z","closed_at":null,"author_association":"OWNER","body":"Similar to https://github.com/easydigitaldownloads/vendd/issues/216, Themedd will have some way in the near future to customize the homepage. It would be super cool to take this a step further and allow the user to build a layout for _any_ page.\r\n\r\nThe cleanest/easiest way seems to be with widgets, as suggested in https://github.com/easydigitaldownloads/vendd/issues/216. The way I see it working is:\r\n\r\n1. Create a new page template for Themedd. Something like \"Custom Layout\" or \"Page Builder\", though with those names, it might get confused with an actual page builder. Perhaps something with \"widget\" in the name.\r\n\r\n2. When this template is assigned to a page, a dynamic sidebar will be created using the page's title. The page ID will be used to register the sidebar.\r\n\r\n3. In the customizer, and when navigating to the page with the template applied, you'll be able to click to add widgets, rearrange them etc.\r\n\r\nShortcodes don't work on text widgets by default so we'll need to add a line of code to allow this:\r\n\r\n`add_filter( 'widget_text', 'do_shortcode' );`\r\n\r\nThis means you could then add a text widget and add the `[downloads]` shortcode, using all of the available parameters. Even better, a custom `Themedd: Downloads` widget could be created which would lead to a much nicer experience for the user. They could select the column count, toggle thumbnails and buy buttons etc.\r\n\r\nSome things that might work well:\r\n\r\n1. A downloads widget to output a grid of downloads.\r\n1. An integration with EDD Featured Downloads so the user can output featured downloads. This could simply integrate with the downloads widget.\r\n1. A testimonials widget which pulls testimonials from Jetpack.\r\n1. A widget for showing \"features\".\r\n1. A text + image widget with some basic settings for positioning of image etc\r\n1. A download widget. Similar to the text and image widget but will show information from the download + a purchase button\r\n1. A call to action widget. Title, sub-heading, button + ability to set link.\r\n1. A pricing table widget if https://github.com/easydigitaldownloads/edd-pricing-tables is active\r\n\r\nThe above would provide some really interesting layouts."},"comment":{"url":"https://api.github.com/repos/easydigitaldownloads/themedd/issues/comments/351658270","html_url":"https://github.com/easydigitaldownloads/themedd/issues/103#issuecomment-351658270","issue_url":"https://api.github.com/repos/easydigitaldownloads/themedd/issues/103","id":351658270,"user":{"login":"amdrew","id":52581,"avatar_url":"https://avatars2.githubusercontent.com/u/52581?v=4","gravatar_id":"","url":"https://api.github.com/users/amdrew","html_url":"https://github.com/amdrew","followers_url":"https://api.github.com/users/amdrew/followers","following_url":"https://api.github.com/users/amdrew/following{/other_user}","gists_url":"https://api.github.com/users/amdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/amdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amdrew/subscriptions","organizations_url":"https://api.github.com/users/amdrew/orgs","repos_url":"https://api.github.com/users/amdrew/repos","events_url":"https://api.github.com/users/amdrew/events{/privacy}","received_events_url":"https://api.github.com/users/amdrew/received_events","type":"User","site_admin":false},"created_at":"2017-12-14T09:37:59Z","updated_at":"2017-12-14T09:37:59Z","author_association":"OWNER","body":"@davidsherlock Been thinking about this a lot. Although it seems widgets are going to stick around for the time being, I do think that creating blocks in Gutenberg is the better option. Creating a page and then dragging out all the relevant blocks to create a unique layout will be a better experience than using widgets in sidebars. There's also a tonne of blocks already being planned on the Gutenberg repo, all Themedd needs to do it style them, and potentially create any that won't exist."}}
{"actor":{"display_login":"amdrew"}}