{"action":"created","issue":{"url":"https://api.github.com/repos/bombayworks/currycms/issues/23","labels_url":"https://api.github.com/repos/bombayworks/currycms/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/bombayworks/currycms/issues/23/comments","events_url":"https://api.github.com/repos/bombayworks/currycms/issues/23/events","html_url":"https://github.com/bombayworks/currycms/issues/23","id":91205875,"number":23,"title":"No vertical inheritance for module content when a Page template is applied to a page.","user":{"login":"josedsilva","id":712432,"avatar_url":"https://avatars.githubusercontent.com/u/712432?v=3","gravatar_id":"","url":"https://api.github.com/users/josedsilva","html_url":"https://github.com/josedsilva","followers_url":"https://api.github.com/users/josedsilva/followers","following_url":"https://api.github.com/users/josedsilva/following{/other_user}","gists_url":"https://api.github.com/users/josedsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/josedsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josedsilva/subscriptions","organizations_url":"https://api.github.com/users/josedsilva/orgs","repos_url":"https://api.github.com/users/josedsilva/repos","events_url":"https://api.github.com/users/josedsilva/events{/privacy}","received_events_url":"https://api.github.com/users/josedsilva/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-26T09:35:16Z","updated_at":"2015-06-26T15:07:56Z","closed_at":"2015-06-26T15:07:56Z","body":"When a Page template (a.k.a  Layout page) is applied to a page, the modules inherit content from the applied layout page and not from the parent pages in the vertical page tree.\r\nThis makes it difficult to edit content of a module on a \"parent\" page (which has an applied layout page) since this content will not be inherited to any of it's subpages (i.e. no vertical inheritance). A module on a child/sub page will inherit content from its applied layout page (i.e. lateral inheritance) and not from the parent page. This is a major issue that needs to be resolved.\r\nHowever, If a module is created on a page and it's content edited, this content will become available to it's \"direct\" descendants (i.e. direct vertical inheritance exists).\r\n\r\nThis looks like a design flaw. Can I propose a new design to tackle this issue? You need to debate it.\r\nA page should not inherit content from Layout pages. A layout page should be a template that specifies, what twig template to use and which modules to insert in the placeholders. It can use the module order but not the content. Content should be created either on the page or should come from the parent page(s)."},"comment":{"url":"https://api.github.com/repos/bombayworks/currycms/issues/comments/115721637","html_url":"https://github.com/bombayworks/currycms/issues/23#issuecomment-115721637","issue_url":"https://api.github.com/repos/bombayworks/currycms/issues/23","id":115721637,"user":{"login":"josedsilva","id":712432,"avatar_url":"https://avatars.githubusercontent.com/u/712432?v=3","gravatar_id":"","url":"https://api.github.com/users/josedsilva","html_url":"https://github.com/josedsilva","followers_url":"https://api.github.com/users/josedsilva/followers","following_url":"https://api.github.com/users/josedsilva/following{/other_user}","gists_url":"https://api.github.com/users/josedsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/josedsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josedsilva/subscriptions","organizations_url":"https://api.github.com/users/josedsilva/orgs","repos_url":"https://api.github.com/users/josedsilva/repos","events_url":"https://api.github.com/users/josedsilva/events{/privacy}","received_events_url":"https://api.github.com/users/josedsilva/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T15:07:56Z","updated_at":"2015-06-26T15:07:56Z","body":"Nope, metadata created on an ancestor page does not get inherited to a subpage if both ancestor page and subpage have layout templates.\r\nI agree with you on the inheritance issue - create the modules on the ancestor page, though this has to be done multiple times. Maybe if page struct is well planned, this issue can be taken care of.\r\nIssue closed."}}