Closed ComLock closed 5 years ago
Workaround is move the service under site in the lib.
This issue is invalid. Just a typo!
Soo.. services work regardless of where you place them?
Customselector will use a service in resources/site/services or resources/services
So I made a lib where I put a custom selector service directly under /src/main/resources/services/...
And then I include that lib in a app and try to use the service in a custom selector.
It seems the custom selector only tries to look for the service under /site:
Service error: Resource [com.enonic.app.search:/site/services/thesauriSelector/thesauriSelector.js] was not found (com.enonic.xp.resource.ResourceNotFoundException)
ref:
https://github.com/ComLock/enonic-xp-lib-yase/commit/5647e7bd79ba6f4fb19d9686fb4f94e5be041a00#diff-1e264abb0b2219d3d09f121df5ef6b34R1
https://github.com/ComLock/enonic-xp-app-search/commit/d59e040628e33d05f34fd5cea6f6baff1657359f#diff-aa8426cedbe0a717e02566600b408fddR77