Accessing UI Resources

You can access the user interface resources from your current skin via simplified RESTful URL structures. These API calls should be used instead of those in the User Interface module.

By making requests into the /ui/ URL path, you can access resources from your current skin with a simplified URL structure. These URLs are simpler and also more cache friendly for modern web browsers. All resources will be loaded from the user's current skin.

The following RESTful URL types are available:
  • To access cascading style sheets (CSS), use the following URL structure:
    /ui/css/<filename>
    This URL can be used instead of the css action in the User Interface module.
  • To access JavaScript files (JS), use the following URL structure:
    /ui/js/<filename>
    This URL can be used instead of the script action in the User Interface module.
  • To access XML configuration files, use the following URL structure:
    /ui/config/<filename>
    This URL can be used instead of the config action in the User Interface module.
  • To access images, use the following URL structure:
    /ui/img/<filename>
    This URL can be used instead of the image action in the User Interface module.