{"action":"created","issue":{"url":"https://api.github.com/repos/divio/django-cms/issues/5085","repository_url":"https://api.github.com/repos/divio/django-cms","labels_url":"https://api.github.com/repos/divio/django-cms/issues/5085/labels{/name}","comments_url":"https://api.github.com/repos/divio/django-cms/issues/5085/comments","events_url":"https://api.github.com/repos/divio/django-cms/issues/5085/events","html_url":"https://github.com/divio/django-cms/issues/5085","id":141055188,"number":5085,"title":"Plugin edit buttons not working (structure editor)","user":{"login":"petrklus","id":1115667,"avatar_url":"https://avatars.githubusercontent.com/u/1115667?v=3","gravatar_id":"","url":"https://api.github.com/users/petrklus","html_url":"https://github.com/petrklus","followers_url":"https://api.github.com/users/petrklus/followers","following_url":"https://api.github.com/users/petrklus/following{/other_user}","gists_url":"https://api.github.com/users/petrklus/gists{/gist_id}","starred_url":"https://api.github.com/users/petrklus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrklus/subscriptions","organizations_url":"https://api.github.com/users/petrklus/orgs","repos_url":"https://api.github.com/users/petrklus/repos","events_url":"https://api.github.com/users/petrklus/events{/privacy}","received_events_url":"https://api.github.com/users/petrklus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-15T18:08:27Z","updated_at":"2016-03-18T14:52:47Z","closed_at":null,"body":"I have created very simple plugin to allow per-block translation of a page. It works by creating Translated Block Holder, which can then contain multiple TranslatedBlock children. Each child can have\r\n\r\nI am having problems when using the structure editor. I can add and edit Holder objects without any problems, however, their children do not seem to be editable. Nothing happens when I click the \"pencil\" icon, and double-click shows the menu of the parent, not the actual object.\r\n\r\nIn the screenshot below, I can click the \"pencil\" for the translated block holder and the first block underneath - however, I cannot even expand the second (de) block - nothing happens on click. No errors are reported in console and I've tested this both on Firefox and Chrome.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1115667/13788647/e942fd96-eae0-11e5-9814-2882515ea8a4.png)\r\n\r\n[cnk_djangocms_translated_block.zip](https://github.com/divio/django-cms/files/174522/cnk_djangocms_translated_block.zip)"},"comment":{"url":"https://api.github.com/repos/divio/django-cms/issues/comments/198395436","html_url":"https://github.com/divio/django-cms/issues/5085#issuecomment-198395436","issue_url":"https://api.github.com/repos/divio/django-cms/issues/5085","id":198395436,"user":{"login":"petrklus","id":1115667,"avatar_url":"https://avatars.githubusercontent.com/u/1115667?v=3","gravatar_id":"","url":"https://api.github.com/users/petrklus","html_url":"https://github.com/petrklus","followers_url":"https://api.github.com/users/petrklus/followers","following_url":"https://api.github.com/users/petrklus/following{/other_user}","gists_url":"https://api.github.com/users/petrklus/gists{/gist_id}","starred_url":"https://api.github.com/users/petrklus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrklus/subscriptions","organizations_url":"https://api.github.com/users/petrklus/orgs","repos_url":"https://api.github.com/users/petrklus/repos","events_url":"https://api.github.com/users/petrklus/events{/privacy}","received_events_url":"https://api.github.com/users/petrklus/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T14:52:47Z","updated_at":"2016-03-18T14:52:47Z","body":"I think have have found the problem, though not sure what the solution may be. In my template, I've got the following:\r\n\r\n    {% if LANGUAGE_CODE == translatedblock.show_on_lang %}\r\n    <div class=\"\">\r\n    {% for plugin in translatedblock.child_plugin_instances %}\r\n    \t{% render_plugin plugin %}\r\n    {% endfor %}\r\n    </div>\r\n    {% else %}\r\n    <!-- NOT SHOWING DUE TO LANGUAGE -->\r\n    {% endif %}\r\n\r\nWhich means that the render_plugin is only called when the language matches. On the plugins where the render_plugin was omitted, the frontend admin did not work. Any tips how to make a render_plugin \"dry run\"?"}}