{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1325","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1325/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1325/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1325/events","html_url":"https://github.com/silverstripe/silverstripe-cms/pull/1325","id":116975593,"number":1325,"title":"NEW allow for setting Current, Section and Link values via Config system","user":{"login":"muskie9","id":870751,"avatar_url":"https://avatars.githubusercontent.com/u/870751?v=3","gravatar_id":"","url":"https://api.github.com/users/muskie9","html_url":"https://github.com/muskie9","followers_url":"https://api.github.com/users/muskie9/followers","following_url":"https://api.github.com/users/muskie9/following{/other_user}","gists_url":"https://api.github.com/users/muskie9/gists{/gist_id}","starred_url":"https://api.github.com/users/muskie9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muskie9/subscriptions","organizations_url":"https://api.github.com/users/muskie9/orgs","repos_url":"https://api.github.com/users/muskie9/repos","events_url":"https://api.github.com/users/muskie9/events{/privacy}","received_events_url":"https://api.github.com/users/muskie9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-15T05:59:31Z","updated_at":"2015-11-19T20:16:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/pulls/1325","html_url":"https://github.com/silverstripe/silverstripe-cms/pull/1325","diff_url":"https://github.com/silverstripe/silverstripe-cms/pull/1325.diff","patch_url":"https://github.com/silverstripe/silverstripe-cms/pull/1325.patch"},"body":"The goal of this is to allow for setting the `current`, `section` and `link` return values for easier use with various front-end frameworks such as bootstrap. It uses the Config system to set the default value and allow the developer to override that value depending on their project need."},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/comments/158184888","html_url":"https://github.com/silverstripe/silverstripe-cms/pull/1325#issuecomment-158184888","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1325","id":158184888,"user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T20:16:26Z","updated_at":"2015-11-19T20:16:26Z","body":"After reading @dhensby's comment I tend to agree. It would probably be more risky to make this no longer act as a constant.\r\n\r\nIf you need to have a custom css class name, you could implement it using a method separate from `LinkingMode`.\r\n\r\nIn fact, I would go as far as to define some `const` to that effect to enforce this in core, rather than the string literals.\r\n\r\n"}}