How do I find specific resources?
Use ResourceLocatorUtil and its many dedicated methods.
ResourceLocatorUtil has dedicated methods to get hold of different resources in Sitevision such as the Image Repository, the File Repository or the Trashcan. It also has methods to get a specific node by identifier, path or URL.
Step 1 - Get an instance of ResourceLocatorUtil
For WebApp/RESTApp - use import:
For Script module - use require: