Enables scripted content fragments to use Cfs
Methods
Get
Get a file
Usage
#set($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 | | |
Return Type
File
Get
Get a file
Usage
#set($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 | int | When provided, constrains width of file by re-sizing and storing re-sized version | Optional | | |
| Width | int | When provided, constrains height of file by re-sizing and storing re-sized version | Optional | | |
Return Type
File