Enables scripted content fragments to use Cfs
Methods
Get
Get Overload 1
Get a file
Velocity
#set($fileResponse = $core_v2_cfs.Get($fileStore, $filePath, $filename))
JavaScript
var fileResponse = core_v2_cfs.Get(fileStore, filePath, filename);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStore | String | Key of the file's store | Required | ||
filePath | String | Path of the file within the store | Required | ||
filename | String | Name of the file | Required |
Get Overload 2
Get a file
Velocity
#set($fileResponse = $core_v2_cfs.Get($fileStore, $filePath, $filename, "%{ Height = $heightArg, Width = $widthArg }"))
JavaScript
var fileResponse = core_v2_cfs.Get(fileStore, filePath, filename, { Height: heightArg, Width: widthArg });
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStore | String | Key of the file's store | Required | ||
filePath | String | Path of the file within the store | Required | ||
filename | String | Name of the file | Required | ||
Height | Int32 | When provided, constrains width of file by re-sizing and storing re-sized version | Optional | ||
Width | Int32 | When provided, constrains height of file by re-sizing and storing re-sized version | Optional |