{"action":"created","issue":{"url":"https://api.github.com/repos/wp-papi/papi/issues/107","labels_url":"https://api.github.com/repos/wp-papi/papi/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/wp-papi/papi/issues/107/comments","events_url":"https://api.github.com/repos/wp-papi/papi/issues/107/events","html_url":"https://github.com/wp-papi/papi/issues/107","id":113427176,"number":107,"title":"Page id conflict","user":{"login":"nlemoine","id":2526939,"avatar_url":"https://avatars.githubusercontent.com/u/2526939?v=3","gravatar_id":"","url":"https://api.github.com/users/nlemoine","html_url":"https://github.com/nlemoine","followers_url":"https://api.github.com/users/nlemoine/followers","following_url":"https://api.github.com/users/nlemoine/following{/other_user}","gists_url":"https://api.github.com/users/nlemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/nlemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlemoine/subscriptions","organizations_url":"https://api.github.com/users/nlemoine/orgs","repos_url":"https://api.github.com/users/nlemoine/repos","events_url":"https://api.github.com/users/nlemoine/events{/privacy}","received_events_url":"https://api.github.com/users/nlemoine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-26T19:00:04Z","updated_at":"2015-10-26T19:04:44Z","closed_at":null,"body":"I'm having an issue with page ids. \r\n\r\nMy \"types\" are located in multiple directories, registered with the `papi/settings/directories` filter. Two files have the same name and this causes a conflict in admin menu (I'm using option types). \r\n\r\nThe file name is used to assign the page id. If multiple directories can be registered, I think the file name is not a strong enough value to ensure a unique id."},"comment":{"url":"https://api.github.com/repos/wp-papi/papi/issues/comments/151251176","html_url":"https://github.com/wp-papi/papi/issues/107#issuecomment-151251176","issue_url":"https://api.github.com/repos/wp-papi/papi/issues/107","id":151251176,"user":{"login":"nlemoine","id":2526939,"avatar_url":"https://avatars.githubusercontent.com/u/2526939?v=3","gravatar_id":"","url":"https://api.github.com/users/nlemoine","html_url":"https://github.com/nlemoine","followers_url":"https://api.github.com/users/nlemoine/followers","following_url":"https://api.github.com/users/nlemoine/following{/other_user}","gists_url":"https://api.github.com/users/nlemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/nlemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlemoine/subscriptions","organizations_url":"https://api.github.com/users/nlemoine/orgs","repos_url":"https://api.github.com/users/nlemoine/repos","events_url":"https://api.github.com/users/nlemoine/events{/privacy}","received_events_url":"https://api.github.com/users/nlemoine/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T19:04:44Z","updated_at":"2015-10-26T19:04:44Z","body":"Probably by taking the full path of the file? Or relative path from project root."}}