{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/740","repository_url":"https://api.github.com/repos/marmelab/admin-on-rest","labels_url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/740/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/740/comments","events_url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/740/events","html_url":"https://github.com/marmelab/admin-on-rest/issues/740","id":234452506,"number":740,"title":"Allow linkType on Reference*Field ","user":{"login":"danilobuerger","id":996231,"avatar_url":"https://avatars1.githubusercontent.com/u/996231?v=3","gravatar_id":"","url":"https://api.github.com/users/danilobuerger","html_url":"https://github.com/danilobuerger","followers_url":"https://api.github.com/users/danilobuerger/followers","following_url":"https://api.github.com/users/danilobuerger/following{/other_user}","gists_url":"https://api.github.com/users/danilobuerger/gists{/gist_id}","starred_url":"https://api.github.com/users/danilobuerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danilobuerger/subscriptions","organizations_url":"https://api.github.com/users/danilobuerger/orgs","repos_url":"https://api.github.com/users/danilobuerger/repos","events_url":"https://api.github.com/users/danilobuerger/events{/privacy}","received_events_url":"https://api.github.com/users/danilobuerger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-08T08:42:25Z","updated_at":"2017-06-11T08:35:59Z","closed_at":null,"body":"It would be nice if I can specify a linkType on ReferenceManyField or ReferenceArrayField so that when using a SingleFieldList the containing Field would be wrapped with Link.\r\n\r\nI could then do something like:\r\n\r\n```\r\n<ReferenceManyField label=\"Comments by\" reference=\"comments\" target=\"post_id\" linkType=\"show\">\r\n  <SingleFieldList>\r\n    <ChipField source=\"author.name\" />\r\n  </SingleFieldList>\r\n</ReferenceManyField>\r\n```\r\n\r\nWhich would make the Chip link to the respective comment."},"comment":{"url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/comments/307614615","html_url":"https://github.com/marmelab/admin-on-rest/issues/740#issuecomment-307614615","issue_url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/740","id":307614615,"user":{"login":"danilobuerger","id":996231,"avatar_url":"https://avatars1.githubusercontent.com/u/996231?v=3","gravatar_id":"","url":"https://api.github.com/users/danilobuerger","html_url":"https://github.com/danilobuerger","followers_url":"https://api.github.com/users/danilobuerger/followers","following_url":"https://api.github.com/users/danilobuerger/following{/other_user}","gists_url":"https://api.github.com/users/danilobuerger/gists{/gist_id}","starred_url":"https://api.github.com/users/danilobuerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danilobuerger/subscriptions","organizations_url":"https://api.github.com/users/danilobuerger/orgs","repos_url":"https://api.github.com/users/danilobuerger/repos","events_url":"https://api.github.com/users/danilobuerger/events{/privacy}","received_events_url":"https://api.github.com/users/danilobuerger/received_events","type":"User","site_admin":false},"created_at":"2017-06-11T08:35:59Z","updated_at":"2017-06-11T08:35:59Z","body":"@fzaninotto I would like to make a PR for this if it is something that is actually wanted?\r\n\r\nA couple of implementation ideas:\r\n\r\na) Add `linkType` to `ReferenceManyField` and `ReferenceArrayField` with default `false` (to keep backward compatibility). Pass `linkType` to child. Implement rendering of `Link` in `SingleFieldList`.\r\n\r\nb) Add `linkType` to `SingleFieldList` with default `false` (to keep backward compatibility). Implement rendering of `Link` in `SingleFieldList`.\r\n\r\nc) Add a new component called `SingleLinkFieldList` (or similar). Add `linkType` to `SingleLinkFieldList` with default `edit` (same as `ReferenceField`). Implement rendering of `Link` in `SingleLinkFieldList`.\r\n"}}
{"actor":{"display_login":"danilobuerger"}}