{"action":"created","issue":{"url":"https://api.github.com/repos/lukaskleinschmidt/kirby-field-modules/issues/8","repository_url":"https://api.github.com/repos/lukaskleinschmidt/kirby-field-modules","labels_url":"https://api.github.com/repos/lukaskleinschmidt/kirby-field-modules/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/lukaskleinschmidt/kirby-field-modules/issues/8/comments","events_url":"https://api.github.com/repos/lukaskleinschmidt/kirby-field-modules/issues/8/events","html_url":"https://github.com/lukaskleinschmidt/kirby-field-modules/issues/8","id":175874921,"number":8,"title":"Which setup of the modules-plugin is the field assuming is in use?","user":{"login":"digiltd","id":5680968,"avatar_url":"https://avatars.githubusercontent.com/u/5680968?v=3","gravatar_id":"","url":"https://api.github.com/users/digiltd","html_url":"https://github.com/digiltd","followers_url":"https://api.github.com/users/digiltd/followers","following_url":"https://api.github.com/users/digiltd/following{/other_user}","gists_url":"https://api.github.com/users/digiltd/gists{/gist_id}","starred_url":"https://api.github.com/users/digiltd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digiltd/subscriptions","organizations_url":"https://api.github.com/users/digiltd/orgs","repos_url":"https://api.github.com/users/digiltd/repos","events_url":"https://api.github.com/users/digiltd/events{/privacy}","received_events_url":"https://api.github.com/users/digiltd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-08T21:56:17Z","updated_at":"2016-09-09T08:07:18Z","closed_at":null,"body":"I am struggling a little with setting up modules correctly, could someone document how the modules-plugin should be setup in order for the field and plugin to work together. \r\n\r\nThe readme at https://github.com/getkirby-plugins/modules-plugin talks about two methods of setting up.\r\n\r\n### Option 1\r\n\r\n**`site/blueprints/default.yml`**\r\n```\r\ntitle: Default\r\npages:\r\n  template:\r\n    - module.text\r\n    - module.gallery\r\n```\r\n### Option 2\r\n\r\n**`site/blueprints/default.yml`**\r\n\r\n```yaml\r\ntitle: Default\r\npages:\r\n  template: default\r\n  build:\r\n    - title: _modules\r\n      uid: modules\r\n      template: modules\r\n...\r\n```\r\n\r\n**`site/blueprints/modules.yml`**\r\n\r\n```yaml\r\ntitle: Modules\r\npages:\r\n  template:\r\n    - module.text\r\n    - module.gallery\r\n```\r\n\r\nDoes it make a difference which I use or is there one option I should be using in order for the field to work correctly?\r\n\r\nIn the readme for this field when you mention the blueprint, is that to go in the blueprints created in either of the options?\r\n\r\nFor example do I put them in the default blueprint..\r\n\r\n**`site/blueprints/default.yml`**\r\n\r\n```yaml\r\ntitle: Default\r\npages:\r\n  template: default\r\n  build:\r\n    - title: _modules\r\n      uid: modules\r\n      template: modules\r\nfields:\r\n  modules:\r\n    label: Modules\r\n    type: modules\r\n```\r\n\r\nI am fairly competent with Kirby and the general use of blueprints, snippets, fields, templates and controllers. But I am finding the concept of these modules hard to implement and would appreciate a little more information if possible.\r\n\r\nAt the moment without the field when I create a new page it then creates a folder \"_modules\" and then I open that folder, and then add another \"page\" choose the template and then fill in the content.  \r\n\r\nThe above workflow does seems a little complicated, but I can just about get my head around it and what is actually happening. But the idea of a \"page within a page within a page\" is not something I would want or expect a client to have to deal with.\r\n\r\nHopefully someone can explain a little on how these modules should be used. Thanks"},"comment":{"url":"https://api.github.com/repos/lukaskleinschmidt/kirby-field-modules/issues/comments/245847722","html_url":"https://github.com/lukaskleinschmidt/kirby-field-modules/issues/8#issuecomment-245847722","issue_url":"https://api.github.com/repos/lukaskleinschmidt/kirby-field-modules/issues/8","id":245847722,"user":{"login":"seehat","id":818248,"avatar_url":"https://avatars.githubusercontent.com/u/818248?v=3","gravatar_id":"","url":"https://api.github.com/users/seehat","html_url":"https://github.com/seehat","followers_url":"https://api.github.com/users/seehat/followers","following_url":"https://api.github.com/users/seehat/following{/other_user}","gists_url":"https://api.github.com/users/seehat/gists{/gist_id}","starred_url":"https://api.github.com/users/seehat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seehat/subscriptions","organizations_url":"https://api.github.com/users/seehat/orgs","repos_url":"https://api.github.com/users/seehat/repos","events_url":"https://api.github.com/users/seehat/events{/privacy}","received_events_url":"https://api.github.com/users/seehat/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T08:07:18Z","updated_at":"2016-09-09T08:07:18Z","body":"You could also hide the _modules subpage in the panel sidebar-list:\r\n\r\n```css\r\n.sidebar-list a[data-helper=\"_modules\"] {\r\n  display: none;\r\n}\r\n```"}}
{"actor":{"display_login":"seehat"}}