{"action":"created","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6717","repository_url":"https://api.github.com/repos/OrchardCMS/Orchard","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6717/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6717/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6717/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/6717","id":146255933,"number":6717,"title":"Layout editor elements are not extensible","user":{"login":"bedegaming-aleksej","id":17708144,"avatar_url":"https://avatars.githubusercontent.com/u/17708144?v=3","gravatar_id":"","url":"https://api.github.com/users/bedegaming-aleksej","html_url":"https://github.com/bedegaming-aleksej","followers_url":"https://api.github.com/users/bedegaming-aleksej/followers","following_url":"https://api.github.com/users/bedegaming-aleksej/following{/other_user}","gists_url":"https://api.github.com/users/bedegaming-aleksej/gists{/gist_id}","starred_url":"https://api.github.com/users/bedegaming-aleksej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedegaming-aleksej/subscriptions","organizations_url":"https://api.github.com/users/bedegaming-aleksej/orgs","repos_url":"https://api.github.com/users/bedegaming-aleksej/repos","events_url":"https://api.github.com/users/bedegaming-aleksej/events{/privacy}","received_events_url":"https://api.github.com/users/bedegaming-aleksej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-06T09:50:47Z","updated_at":"2016-04-06T10:08:52Z","closed_at":null,"body":"As a developer, I want a straightforward way to extend functionality of out-of-the-box layout elements without modifying or duplicating any of their code. At the moment, this is only supported partially. Consider the following scenario:\r\n\r\n* I want to add a property called \"A\" to all content elements.\r\n* I want to add a custom button to the element editor toolbox  that would open up an overlay with an input field where I could edit the value of property \"A\"\r\n* I want the corresponding changes to the appearance of the element apply immediately as the property is edited, without a postback to the back end.\r\n\r\nNOTES:\r\nCurrently, achieving this is very problematic. It could be done with the common \"data\" property, but since it is passed to the front end in a form of a serialized string, it is not straightforward to retrieve and maintain the value of a specific property that is a part of it.\r\n\r\nIt is only possible to add a button to the layout element editor toolbox by overriding its corresponding LayoutEditor.Template."},"comment":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/comments/206283718","html_url":"https://github.com/OrchardCMS/Orchard/issues/6717#issuecomment-206283718","issue_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6717","id":206283718,"user":{"login":"sfmskywalker","id":938393,"avatar_url":"https://avatars.githubusercontent.com/u/938393?v=3","gravatar_id":"","url":"https://api.github.com/users/sfmskywalker","html_url":"https://github.com/sfmskywalker","followers_url":"https://api.github.com/users/sfmskywalker/followers","following_url":"https://api.github.com/users/sfmskywalker/following{/other_user}","gists_url":"https://api.github.com/users/sfmskywalker/gists{/gist_id}","starred_url":"https://api.github.com/users/sfmskywalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfmskywalker/subscriptions","organizations_url":"https://api.github.com/users/sfmskywalker/orgs","repos_url":"https://api.github.com/users/sfmskywalker/repos","events_url":"https://api.github.com/users/sfmskywalker/events{/privacy}","received_events_url":"https://api.github.com/users/sfmskywalker/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T10:08:52Z","updated_at":"2016-04-06T10:08:52Z","body":"You can manipulate the client-side element object model without manipulating the `Data` property. This involve writing a custom model map on the server side and a way to include the custom property when serializing the elements on the client side.One way would be to replace the `toDto` functions on the element objects that includes their custom property's value."}}