{"action":"created","issue":{"url":"https://api.github.com/repos/angelozerr/eclipse-wtp-webresources/issues/37","labels_url":"https://api.github.com/repos/angelozerr/eclipse-wtp-webresources/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/angelozerr/eclipse-wtp-webresources/issues/37/comments","events_url":"https://api.github.com/repos/angelozerr/eclipse-wtp-webresources/issues/37/events","html_url":"https://github.com/angelozerr/eclipse-wtp-webresources/issues/37","id":55593352,"number":37,"title":"Mark folders as web root folders","user":{"login":"kaloyan-raev","id":468091,"avatar_url":"https://avatars.githubusercontent.com/u/468091?v=3","gravatar_id":"","url":"https://api.github.com/users/kaloyan-raev","html_url":"https://github.com/kaloyan-raev","followers_url":"https://api.github.com/users/kaloyan-raev/followers","following_url":"https://api.github.com/users/kaloyan-raev/following{/other_user}","gists_url":"https://api.github.com/users/kaloyan-raev/gists{/gist_id}","starred_url":"https://api.github.com/users/kaloyan-raev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaloyan-raev/subscriptions","organizations_url":"https://api.github.com/users/kaloyan-raev/orgs","repos_url":"https://api.github.com/users/kaloyan-raev/repos","events_url":"https://api.github.com/users/kaloyan-raev/events{/privacy}","received_events_url":"https://api.github.com/users/kaloyan-raev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-27T09:19:13Z","updated_at":"2015-03-27T22:30:17Z","closed_at":null,"body":"Consider the following project structure:\r\n```\r\n+ project\r\n  + public\r\n    + img\r\n      - myimage.png\r\n  + deep\r\n    + deep\r\n      + deep\r\n        - template.phtml\r\n```\r\nThe template.phtml file is not directly accessible, but via inclusion in another PHP/HTML resource. Therefore any relative paths does not really follow the project tree hierarchy and are marked as validation errors, e.g. ```<img src=\"/img/myimage.png\" />``` will be marked as error.\r\n\r\nThis situation can be improved by marking a folder in the project (i.e. \"public\" in the above case) as the web root folder. I am thinking about providing a project property for this. The user can right-click on the project, choose properties, then go to the Web Resources node and browse a folder to specify as Web Root. Then the validator should consider the value of this property.\r\n\r\nIs such improvement acceptable? Any other suggestions to resolve the above case?"},"comment":{"url":"https://api.github.com/repos/angelozerr/eclipse-wtp-webresources/issues/comments/87108216","html_url":"https://github.com/angelozerr/eclipse-wtp-webresources/issues/37#issuecomment-87108216","issue_url":"https://api.github.com/repos/angelozerr/eclipse-wtp-webresources/issues/37","id":87108216,"user":{"login":"kaloyan-raev","id":468091,"avatar_url":"https://avatars.githubusercontent.com/u/468091?v=3","gravatar_id":"","url":"https://api.github.com/users/kaloyan-raev","html_url":"https://github.com/kaloyan-raev","followers_url":"https://api.github.com/users/kaloyan-raev/followers","following_url":"https://api.github.com/users/kaloyan-raev/following{/other_user}","gists_url":"https://api.github.com/users/kaloyan-raev/gists{/gist_id}","starred_url":"https://api.github.com/users/kaloyan-raev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaloyan-raev/subscriptions","organizations_url":"https://api.github.com/users/kaloyan-raev/orgs","repos_url":"https://api.github.com/users/kaloyan-raev/repos","events_url":"https://api.github.com/users/kaloyan-raev/events{/privacy}","received_events_url":"https://api.github.com/users/kaloyan-raev/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T22:30:17Z","updated_at":"2015-03-27T22:30:17Z","body":"PR #41 "}}