Documentation > CMS Template API Library > ShowAcquireParams

CrownPeak.CMSAPI.ShowAcquireParams

Params used in conjunction with Input.ShowAcquireDocument(string, string, ShowAcquireParams, string) and with Input.ShowAcquireImage(string, string, ShowAcquireParams, string, string).

NameDescriptionType
AddAdditionalImage

Add an image to be scaled to the size specified when an image is selected or uploaded with the Input.ShowAcquireImage control. Note: Add the optional displaySizeName parameter to the ShowAcquireImage call if you want to display one of these images after the upload instead of the original

Method
BrowseType

Optional: Changing this setting is not recommended. Use ShowBrowse to control whether the browse control that lets you select an asset in the CMS will be displayed when you call one of the ShowAcquire methods. Set to RelationshipType.Link or RelationshipType.Attach, if you want to be able to browse for CMS assets with the control. Link is recommended. Attached will cause the selected asset to be copied as an attachment to the current asset.

Property
DefaultFolder

Use this parameter to set the default CMS folder that you will see when browsing assets. ShowBrowse must be set to RelationshipType.Link or RelationshipType.Attach.

Property
Extensions

List of strings representing the supported extensions Acquire Image defaults to "png", "gif", "jpeg", "jpg"

Property
LassoBoxHeight

Optional: The initial height of the "lasso" crop-selector when you have uploaded an image and want to crop it. ShowLasso must be set to true. Defaults to 100. If InputForm.CropImage is called from post_input.aspx, this value will be overridden on the next edit with the value used to crop the image.

Property
LassoBoxLeft

Optional: The initial left pixel postion of the "lasso" crop-selector when you have uploaded an image and want to crop it. ShowLasso must be set to true. If InputForm.CropImage is called from post_input.aspx, this value will be overridden on the next edit with the value used to crop the image.

Property
LassoBoxTop

Optional: The initial top pixel postion of the "lasso" crop-selector when you have uploaded an image and want to crop it. ShowLasso must be set to true. If InputForm.CropImage is called from post_input.aspx, this value will be overridden on the next edit with the value used to crop the image.

Property
LassoBoxWidth

Optional: The initial width of the "lasso" crop-selector when you have uploaded an image and want to crop it. ShowLasso must be set to true. Defaults to 100. If InputForm.CropImage is called from post_input.aspx, this value will be overridden on the next edit with the value used to crop the image.

Property
LassoHeight

Optional: Y-component of lasso aspect ratio. Works with Lasso. When calling InputForm.CropImage() in post_input, scales cropped image using this value. 0 or less for this value will result will result in no scaling for this dimension.

Property
LassoWidth

Optional: X-component of lasso aspect ratio. Works with Lasso. When calling InputForm.CropImage() in post_input, scales cropped image using this value. 0 or less for this value will result will result in no scaling for this dimension.

Property
ModelId

Optional: Sets the model id for the file (image or document) to be uploaded. Used only when UploadType = RelationshipType.Link.

Property
PickerType

Set to PickerView.FileView, PickerView.DigitalAssetView or PickerView.CollectionView, if you want to change the default view for the picker when browsing the CMS assets. If DAM and/or Collections are not enabled on the instance the FileView option will be used.

Property
ShowBrowse

Show the CMS browse view in the acquire dialog. Defaults to true

Property
ShowLasso

Set this to true if you want the "lasso" selector to show up when you upload an image to the Input.ShowAcquireImage() control. This gives you a draggable and resizable rectangle that can be used to select a region to "crop" from the image. Call InputForm.CropImage in post_input.aspx to use the last selected "lasso" parameters to crop the image.

Property
ShowUpload

Show the option to upload. Defaults to true

Property
ThumbnailField

Use this parameter to set the field name where the path to the cropped image would be stored.

Property
UploadType

Optional: Changing this setting is not recommended. Use ShowUpload to control whether the upload control that lets you upload a file will be displayed when you call one of the ShowAcquire methods. Set to RelationshipType.Attach or RelationshipType.Link, if you want to be able to upload files with the control. Attach is recommended. Link will cause a new asset to be created.

Property

Connect with Crownpeak