Enables scripted content fragments to use Cfs

Methods

Get

Get a file

Usage

#set($fileResponse = $core_v2_cfs.Get($fileStore, $filePath, $filename))

Parameters

NameTypeDescriptionRequiredDefaultOptions
fileStorestringKey of the file's storeRequired
filePathstringPath of the file within the storeRequired
filenamestringName of the fileRequired

Return Type

File

Get

Get a file

Usage

#set($fileResponse = $core_v2_cfs.Get($fileStore, $filePath, $filename, "%{Height = $heightArg, Width = $widthArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
fileStorestringKey of the file's storeRequired
filePathstringPath of the file within the storeRequired
filenamestringName of the fileRequired
HeightintWhen provided, constrains width of file by re-sizing and storing re-sized versionOptional
WidthintWhen provided, constrains height of file by re-sizing and storing re-sized versionOptional

Return Type

File