ScriptHelper RegisterScriptFile Method Kentico 8.1 API Reference
Registers the client script and adds a script file reference to the page. Allows to explicitly disable script minification.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

element
Type: CMS.Base PageElement
Page element
url
Type: OnlineSystem String
The URL or name of the script file. If only name is provided, the file from ~/CMSScripts/ is taken. It is also possible to input URLs like "Controls/uniselector.js" to access subfolders.
minify (Optional)
Type: OnlineSystem Boolean
True if minification should be used, otherwise false
See Also