{"action":"created","issue":{"url":"https://api.github.com/repos/gantry/gantry5/issues/1091","repository_url":"https://api.github.com/repos/gantry/gantry5","labels_url":"https://api.github.com/repos/gantry/gantry5/issues/1091/labels{/name}","comments_url":"https://api.github.com/repos/gantry/gantry5/issues/1091/comments","events_url":"https://api.github.com/repos/gantry/gantry5/issues/1091/events","html_url":"https://github.com/gantry/gantry5/issues/1091","id":124057371,"number":1091,"title":"Admin layout adding subsection","user":{"login":"dudewithamood","id":15866807,"avatar_url":"https://avatars.githubusercontent.com/u/15866807?v=3","gravatar_id":"","url":"https://api.github.com/users/dudewithamood","html_url":"https://github.com/dudewithamood","followers_url":"https://api.github.com/users/dudewithamood/followers","following_url":"https://api.github.com/users/dudewithamood/following{/other_user}","gists_url":"https://api.github.com/users/dudewithamood/gists{/gist_id}","starred_url":"https://api.github.com/users/dudewithamood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudewithamood/subscriptions","organizations_url":"https://api.github.com/users/dudewithamood/orgs","repos_url":"https://api.github.com/users/dudewithamood/repos","events_url":"https://api.github.com/users/dudewithamood/events{/privacy}","received_events_url":"https://api.github.com/users/dudewithamood/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gantry/gantry5/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-28T11:55:35Z","updated_at":"2016-02-03T15:36:31Z","closed_at":null,"body":"In order to achieve 'row' level styling I've managed to add subsections by editing layout.yaml as follows:\r\n\r\n```YAML\r\nlayout:\r\n  /header/:\r\n    -\r\n      - custom-2092\r\n  /navigation/:\r\n    -\r\n      - menu-8235\r\n  /main/:\r\n    -\r\n      - system-messages-9961\r\n    -\r\n      -\r\n        row:\r\n          -\r\n            - custom-3113\r\n          -\r\n            - 'custom-3818 50'\r\n            - 'custom-6655 50'\r\n    -\r\n      - custom-2354\r\n  /footer/:\r\n    -\r\n      - custom-7072\r\n  offcanvas:\r\n    -\r\n      - mobile-menu-8911\r\nstructure:\r\n  header:\r\n    attributes:\r\n      boxed: ''\r\n      class: ''\r\n  navigation:\r\n    type: section\r\n    attributes:\r\n      boxed: ''\r\n  row:\r\n    title: 'Boxed row'\r\n    type: section\r\n    attributes:\r\n      class: 'g-container'\r\n  main:\r\n    attributes:\r\n      boxed: ''\r\n      class: ''\r\n  footer:\r\n    attributes:\r\n      boxed: '0'\r\n      class: ''\r\n```\r\nIn admin layout this looks like this:\r\n![image](https://cloud.githubusercontent.com/assets/15866807/12018328/e4888a82-ad69-11e5-9097-7d5ea1b6641a.png)\r\n\r\nSo my feature request is to be able to select what to add when the '+' is clicked for a section, where subsection is one of the options, so I can achieve the above from the admin layout screen without having to manually edit layout.yaml. Currently it adds a row (grid element) that cannot have a class attached (although grid.html.twig appears to cater for it).\r\n\r\nThank you :-)"},"comment":{"url":"https://api.github.com/repos/gantry/gantry5/issues/comments/179297131","html_url":"https://github.com/gantry/gantry5/issues/1091#issuecomment-179297131","issue_url":"https://api.github.com/repos/gantry/gantry5/issues/1091","id":179297131,"user":{"login":"dudewithamood","id":15866807,"avatar_url":"https://avatars.githubusercontent.com/u/15866807?v=3","gravatar_id":"","url":"https://api.github.com/users/dudewithamood","html_url":"https://github.com/dudewithamood","followers_url":"https://api.github.com/users/dudewithamood/followers","following_url":"https://api.github.com/users/dudewithamood/following{/other_user}","gists_url":"https://api.github.com/users/dudewithamood/gists{/gist_id}","starred_url":"https://api.github.com/users/dudewithamood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudewithamood/subscriptions","organizations_url":"https://api.github.com/users/dudewithamood/orgs","repos_url":"https://api.github.com/users/dudewithamood/repos","events_url":"https://api.github.com/users/dudewithamood/events{/privacy}","received_events_url":"https://api.github.com/users/dudewithamood/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T15:36:31Z","updated_at":"2016-02-03T15:36:31Z","body":"I'd like to motivate this a little more and perhaps my suggestion above is not the best option despite it being catered for in the code.\r\n\r\nSo this is my design requirement, a fairly common one(I believe):\r\n- Multiple rows within the 'Main' section\r\n- Different background colours/images for different rows that cover 100% screen width\r\n- Some rows have boxed width content\r\n- Some rows have full width content\r\n- Some rows have multiple blocks\r\n\r\nSince I can only put an ID or class on block elements I use the 'Fullwidth (Flushed Content)' layout for the 'Main' section and apply my boxed width to the content element. Immediately this is a messy solution and creates a whole host of issue for me.\r\n\r\nIf I could add a class to a row (grid element) this design requirement would be a breeze.\r\n\r\nSo an alternative to the above suggested solution would be a little edit icon for each row opening a modal that looks exactly like the one for Section settings.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/15866807/12787081/92189c60-ca9c-11e5-8f55-2d5833dd3b60.png)\r\n"}}