ImageGallery.saveSize (Method)

Creates a new or updates an existing image gallery size specification.

Returns:

ImageGallerySizeID (integer)

Arguments:

Name Type Required Description
id ImageGalleryID Required ID of an image gallery for which to add/update the size specification.
sizeID ImageGallerySizeID_0 Required The ID of an existing image gallery size specification, or 0 to create a new image gallery size specification.
name PlainText_NonNull_125 Required Name of an image gallery size specification.
description PlainText_NonNull_2000 Required Description of an image gallery size specification.
minWidth NonNegativeInteger Optional. Defaults to '0'. Minimum width specified in the image gallery size specification.
maxWidth NonNegativeInteger Optional. Defaults to '0'. Maximum width specified in the image gallery size specification.
minHeight NonNegativeInteger Optional. Defaults to '0'. Minimum height specified in the image gallery size specification.
maxHeight NonNegativeInteger Optional. Defaults to '0'. Maximum height specified in the image gallery size specification.
percentage NonNegativeInteger Optional. Defaults to '0'. Percentage specified in the image gallery size specification.

Context:

License Requirements (none)
Permission Requirements imageGallery:Admin
Deny Context (none)
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

Code Error Message
89504 GalleryID and sizeID provided do not correspond with each other.
89505 Another image gallery size definition already exists with the same name.
89511 The image gallery already has a size specification with the provided width and height.
89512 Sizes cannot be saved for an image gallery having no size restrictions.

Notes:

None