Skip to content

API Add Files

yasindilekci edited this page Sep 5, 2016 · 3 revisions

Description

Adds the given uris to the given group using the given dotCMS host as the host the uris should be looked up.

Methods

This method is supported by both minify tools: $jsMinifyTool.addFiles() & $cssMinifyTool.addFiles() and has a few alternative signatures as you can see below. They all do the same thing, but the shorter ones use defaults for some of the attributes for convenience.

.addFiles(fileUris, group)
.addFiles(fileUris, group, host)

Parameters

Field Type Description
fileUris
required
String The fileUris to add, separated by a comma. For instance: "/path/to/file.js,/path/to/another/file.js".
group
required
String The group to add the file to.
host
optional
com.dotmarketing.beans.Host The dotCMS host that will be used to retrieve the filesUris. If no host is provided the current host is used. Use null to skip this parameter.
Clone this wiki locally