{"action":"created","issue":{"url":"https://api.github.com/repos/zotonic/zotonic/issues/1044","labels_url":"https://api.github.com/repos/zotonic/zotonic/issues/1044/labels{/name}","comments_url":"https://api.github.com/repos/zotonic/zotonic/issues/1044/comments","events_url":"https://api.github.com/repos/zotonic/zotonic/issues/1044/events","html_url":"https://github.com/zotonic/zotonic/issues/1044","id":108654296,"number":1044,"title":"Create new page without dialog asking for title.","user":{"login":"mworrell","id":38268,"avatar_url":"https://avatars.githubusercontent.com/u/38268?v=3","gravatar_id":"","url":"https://api.github.com/users/mworrell","html_url":"https://github.com/mworrell","followers_url":"https://api.github.com/users/mworrell/followers","following_url":"https://api.github.com/users/mworrell/following{/other_user}","gists_url":"https://api.github.com/users/mworrell/gists{/gist_id}","starred_url":"https://api.github.com/users/mworrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mworrell/subscriptions","organizations_url":"https://api.github.com/users/mworrell/orgs","repos_url":"https://api.github.com/users/mworrell/repos","events_url":"https://api.github.com/users/mworrell/events{/privacy}","received_events_url":"https://api.github.com/users/mworrell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zotonic/zotonic/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"closed","locked":false,"assignee":{"login":"mworrell","id":38268,"avatar_url":"https://avatars.githubusercontent.com/u/38268?v=3","gravatar_id":"","url":"https://api.github.com/users/mworrell","html_url":"https://github.com/mworrell","followers_url":"https://api.github.com/users/mworrell/followers","following_url":"https://api.github.com/users/mworrell/following{/other_user}","gists_url":"https://api.github.com/users/mworrell/gists{/gist_id}","starred_url":"https://api.github.com/users/mworrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mworrell/subscriptions","organizations_url":"https://api.github.com/users/mworrell/orgs","repos_url":"https://api.github.com/users/mworrell/repos","events_url":"https://api.github.com/users/mworrell/events{/privacy}","received_events_url":"https://api.github.com/users/mworrell/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/zotonic/zotonic/milestones/16","html_url":"https://github.com/zotonic/zotonic/milestones/Release%200.13.5","labels_url":"https://api.github.com/repos/zotonic/zotonic/milestones/16/labels","id":1304275,"number":16,"title":"Release 0.13.5","description":"Maintenance release.","creator":{"login":"mworrell","id":38268,"avatar_url":"https://avatars.githubusercontent.com/u/38268?v=3","gravatar_id":"","url":"https://api.github.com/users/mworrell","html_url":"https://github.com/mworrell","followers_url":"https://api.github.com/users/mworrell/followers","following_url":"https://api.github.com/users/mworrell/following{/other_user}","gists_url":"https://api.github.com/users/mworrell/gists{/gist_id}","starred_url":"https://api.github.com/users/mworrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mworrell/subscriptions","organizations_url":"https://api.github.com/users/mworrell/orgs","repos_url":"https://api.github.com/users/mworrell/repos","events_url":"https://api.github.com/users/mworrell/events{/privacy}","received_events_url":"https://api.github.com/users/mworrell/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":16,"state":"open","created_at":"2015-09-14T13:16:22Z","updated_at":"2015-10-21T11:38:39Z","due_on":"2015-10-15T22:00:00Z","closed_at":null},"comments":12,"created_at":"2015-09-28T13:06:46Z","updated_at":"2015-10-21T11:39:03Z","closed_at":"2015-10-21T11:35:04Z","body":"If a new resource is created we first ask the title of that resource in a dialog.\r\n\r\nQuestion is if we can skip that dialog and go directly to a form for editing the new resource.\r\nProblem is that users might click on the *new page* button and create many empty resources.\r\n\r\nProposed solution is to create a temporary new resource, the created resource will be coupled to the page process. If the page process stops, then the newly created resource will be deleted iff the title is empty and the resource is (still) unpublished.\r\n\r\nTogether with the empty resource we can also insert a pivot task for deleting the resource. This pivot task can check if the creating page process exists (by id), if not then the resource can be deleted.\r\n\r\nThe resource can be created with a filter, providing all the necessary initial properties:\r\n\r\n```\r\n{% with id|temporary_rsc:{props category=... foo=bar  qargs} as id %}\r\n   ... show edit form ...\r\n{% endwith %}\r\n```\r\n\r\nBy making a new temporary resource we can keep all edit routines unchanged and prevent handling the case of a non-existant in uploads, edges, etc.\r\n\r\nThe initial properties can also be added from the query args, by means of the *qargs* option above. This enables dispatch rules like `/new/article`.\r\n\r\n/cc @fredpook @ddeboer @ArthurClemens @DorienD"},"comment":{"url":"https://api.github.com/repos/zotonic/zotonic/issues/comments/149862274","html_url":"https://github.com/zotonic/zotonic/issues/1044#issuecomment-149862274","issue_url":"https://api.github.com/repos/zotonic/zotonic/issues/1044","id":149862274,"user":{"login":"mworrell","id":38268,"avatar_url":"https://avatars.githubusercontent.com/u/38268?v=3","gravatar_id":"","url":"https://api.github.com/users/mworrell","html_url":"https://github.com/mworrell","followers_url":"https://api.github.com/users/mworrell/followers","following_url":"https://api.github.com/users/mworrell/following{/other_user}","gists_url":"https://api.github.com/users/mworrell/gists{/gist_id}","starred_url":"https://api.github.com/users/mworrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mworrell/subscriptions","organizations_url":"https://api.github.com/users/mworrell/orgs","repos_url":"https://api.github.com/users/mworrell/repos","events_url":"https://api.github.com/users/mworrell/events{/privacy}","received_events_url":"https://api.github.com/users/mworrell/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T11:39:03Z","updated_at":"2015-10-21T11:39:03Z","body":"Was almost finished, so included in the 0.13.5."}}