{"action":"opened","issue":{"url":"https://api.github.com/repos/getgrav/grav/issues/361","labels_url":"https://api.github.com/repos/getgrav/grav/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/getgrav/grav/issues/361/comments","events_url":"https://api.github.com/repos/getgrav/grav/issues/361/events","html_url":"https://github.com/getgrav/grav/issues/361","id":111758618,"number":361,"title":"Multiple Collections Using the Same Keys","user":{"login":"jeffaudio","id":1638936,"avatar_url":"https://avatars.githubusercontent.com/u/1638936?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffaudio","html_url":"https://github.com/jeffaudio","followers_url":"https://api.github.com/users/jeffaudio/followers","following_url":"https://api.github.com/users/jeffaudio/following{/other_user}","gists_url":"https://api.github.com/users/jeffaudio/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffaudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffaudio/subscriptions","organizations_url":"https://api.github.com/users/jeffaudio/orgs","repos_url":"https://api.github.com/users/jeffaudio/repos","events_url":"https://api.github.com/users/jeffaudio/events{/privacy}","received_events_url":"https://api.github.com/users/jeffaudio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-16T04:46:43Z","updated_at":"2015-10-16T04:46:43Z","closed_at":null,"body":"When defining multiple collections within a page, only the first of each item type is added to the collection.\r\n\r\n```\r\ncontent:\r\n    items:\r\n        @taxonomy.category: blog\r\n        @taxonomy.category: featured\r\n```\r\n\r\nThis will only match items with the first category, `blog`, but ignore those with `featured` (unless they also have `blog`), which is not the intended collection.\r\n\r\nPer discussion over on the [forums](https://muut.com/getgrav#!/getgrav/general:multiple-collections-and-ta) this is due to the way YAML defines the key.\r\n\r\n```\r\ncontent:\r\n    items:\r\n        @taxonomy: {category: blog}\r\n        @taxonomy.category: featured\r\n```\r\n\r\nThis is one workaround for two items, although it's not extensible. Perhaps `items` could be an array of distinct items or a `filter_combinator` mechanism could be used like in the simplesearch plugin."}}