{"action":"created","issue":{"url":"https://api.github.com/repos/modxcms/revolution/issues/11799","labels_url":"https://api.github.com/repos/modxcms/revolution/issues/11799/labels{/name}","comments_url":"https://api.github.com/repos/modxcms/revolution/issues/11799/comments","events_url":"https://api.github.com/repos/modxcms/revolution/issues/11799/events","html_url":"https://github.com/modxcms/revolution/pull/11799","id":38588629,"number":11799,"title":"[2.3] Enhancement: Real-Time resource alias field","user":{"login":"exside","id":445501,"avatar_url":"https://avatars.githubusercontent.com/u/445501?v=3","gravatar_id":"","url":"https://api.github.com/users/exside","html_url":"https://github.com/exside","followers_url":"https://api.github.com/users/exside/followers","following_url":"https://api.github.com/users/exside/following{/other_user}","gists_url":"https://api.github.com/users/exside/gists{/gist_id}","starred_url":"https://api.github.com/users/exside/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exside/subscriptions","organizations_url":"https://api.github.com/users/exside/orgs","repos_url":"https://api.github.com/users/exside/repos","events_url":"https://api.github.com/users/exside/events{/privacy}","received_events_url":"https://api.github.com/users/exside/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/modxcms/revolution/labels/area-core","name":"area-core","color":"ededed"},{"url":"https://api.github.com/repos/modxcms/revolution/labels/enhancement","name":"enhancement","color":"90BEF2"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/modxcms/revolution/milestones/57","labels_url":"https://api.github.com/repos/modxcms/revolution/milestones/57/labels","id":723777,"number":57,"title":"v2.4.0-pl","description":"Features for the next minor release of MODX Revolution 2.x","creator":{"login":"opengeek","id":232812,"avatar_url":"https://avatars.githubusercontent.com/u/232812?v=3","gravatar_id":"","url":"https://api.github.com/users/opengeek","html_url":"https://github.com/opengeek","followers_url":"https://api.github.com/users/opengeek/followers","following_url":"https://api.github.com/users/opengeek/following{/other_user}","gists_url":"https://api.github.com/users/opengeek/gists{/gist_id}","starred_url":"https://api.github.com/users/opengeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opengeek/subscriptions","organizations_url":"https://api.github.com/users/opengeek/orgs","repos_url":"https://api.github.com/users/opengeek/repos","events_url":"https://api.github.com/users/opengeek/events{/privacy}","received_events_url":"https://api.github.com/users/opengeek/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":48,"state":"open","created_at":"2014-07-17T05:06:15Z","updated_at":"2015-02-07T12:02:29Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2014-07-24T00:57:57Z","updated_at":"2015-02-08T05:07:24Z","closed_at":"2015-02-07T12:02:29Z","pull_request":{"url":"https://api.github.com/repos/modxcms/revolution/pulls/11799","html_url":"https://github.com/modxcms/revolution/pull/11799","diff_url":"https://github.com/modxcms/revolution/pull/11799.diff","patch_url":"https://github.com/modxcms/revolution/pull/11799.patch"},"body":"This is a proposal to implement what was discussed here: https://github.com/modxcms/revolution/issues/11225\r\n\r\nThe alias field is a bit more complicated than the resource header (the big title), as it should reflect as good as possible what will actually be saved, which means I had to replicate the filterPathSegment() from the modresource.class.php method with all its regexes in JavaScript. Not all is possible (for example trim(regex) is a problem...thanks to IE8), but I'm quite ok with the results.\r\n\r\nTested:\r\n\r\n- lowercase only yes / no\r\n- maxlength\r\n- restrict chars: alphanumeric, alpha, legal (=pattern), pattern\r\n- multiple delimiters replaced by one\r\n\r\nCaution:\r\n- There is no transliteration available in Javascript, so characters like ä ö ü etc. get transformed on save!\r\n\r\nLooks like that:\r\n![modx realtime alias](https://cloud.githubusercontent.com/assets/445501/3682463/7f987e9e-12cd-11e4-9202-3bd2243b9219.gif)"},"comment":{"url":"https://api.github.com/repos/modxcms/revolution/issues/comments/73397395","html_url":"https://github.com/modxcms/revolution/pull/11799#issuecomment-73397395","issue_url":"https://api.github.com/repos/modxcms/revolution/issues/11799","id":73397395,"user":{"login":"exside","id":445501,"avatar_url":"https://avatars.githubusercontent.com/u/445501?v=3","gravatar_id":"","url":"https://api.github.com/users/exside","html_url":"https://github.com/exside","followers_url":"https://api.github.com/users/exside/followers","following_url":"https://api.github.com/users/exside/following{/other_user}","gists_url":"https://api.github.com/users/exside/gists{/gist_id}","starred_url":"https://api.github.com/users/exside/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exside/subscriptions","organizations_url":"https://api.github.com/users/exside/orgs","repos_url":"https://api.github.com/users/exside/repos","events_url":"https://api.github.com/users/exside/events{/privacy}","received_events_url":"https://api.github.com/users/exside/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T05:07:24Z","updated_at":"2015-02-08T05:07:24Z","body":"yay! thanks @Mark-H "}}