sc_url_library("Target", "Library Name", "File")

This macro will return the file path, inside a library, to be used on the Scriptcase applications. It is necessary to have a library created on Scriptcase to use this Macro. To create a library, go to the "Tools > Library" Menu.

Parameter
Description
Target Tells you what the scope of the library. It can be "sys" for libraries of Public scope or "prj" for libraries of the Project scope.
Library Name Given name to the library at the time of creation.
File The absolute path within the library.

 

 

Ex. 1 - Importing CSS files from a library:
<*link rel="stylesheet" type="text/css" href="<*?php echo sc_url_library('prj', 'bootstrap-3.3.2-dist', 'css/style1.css'); ?>" />

 

Ex. 2 - Importing a JS file from a library:
<*script type="text/javascript" src="<*?php echo sc_url_library('prj', 'bootstrap-3.3.2-dist', 'js/bootstrap,js'); ?>">

NOTE: Note that you need to remove the asterisk (*) form the examples above to use it.