Documentation > CMS Template API Library > AssetPanelEntry
CrownPeak.CMSAPI.AssetPanelEntry : CrownPeak.CMSAPI.PanelEntry
Represents a single Panel within a ListPanel that was intialized from the children of a folder. Returned in a List by calling asset.GetPanelsFromFolder()
Name | Description | Type |
---|---|---|
GetPanelsFromFolders | Gets a sublist from the current panel using folder children. See asset.GetPanelsFromFolders |
Method |
ChildAsset | The asset associated with the current PanelEntry. by GetPanelsFromFolder. |
Property |
Item[String] | Gets the field associated with this panel instance. Note: Do not include the post fix ":..." part of the name. Use the shortname "my_field", not "my_field:1" |
Property |
Raw | Gets the raw contents of the field associated with this asset panel instance. Automatically-inserted markup code is removed. Note: Do not include the post fix ":..." part of the name. Use the shortname "my_field", not "my_field:1" |
Property |
ClearUpload | Clears the specified upload's meta data from the panel. If there is an array of uploads with this name, they are all removed unless a specific element is named. Note: Do not include the post fix ":..." part of the name. Use the shortname "my_field", not "my_field:1" |
Method |
CreateThumbnail | Creates a thumbnail of the specified size from the currently loaded image. A ThumbnailKey is required. The resulting image will be stored on the panel. Note: Due to memory limitations, the pixel count of the source image cannot be more than 10 million. Note: Do not include the post fix ":..." part of the name. Use the shortname "my_field", not "my_field:1" |
Method |
CreateThumbnail | Creates a thumbnail of the specified size from the UploadedFile, it must be an image. A ThumbnailKey is required. The resulting image will be stored on the panel. Note: Due to memory limitations, the pixel count of the source image cannot be more than 10 million. Note: Do not include the post fix ":..." part of the name. Use the shortname "my_field", not "my_field:1" |
Method |
CropImage | Crop the current image using the box defined by x, y, xx, yy and scaling to width and height. Saving on the panel using thumbnailKey as a fieldname. |
Method |
CropImage | Crop the current image stored in the UploadedFile using the box defined by x, y, xx, yy and scaling to width and height. Saving on the panel using thumbnailKey as a fieldname. |
Method |
GetFieldName | Returns the full field name of a field in the list panel, accounting for proper index. |
Method |
GetPanels | Creates a sublist from the current list. |
Method |
SaveUploadedFile | Save an uploaded file with the given key to the panel in the context of the backing asset or current asset. Note: If this is in the PostInputContext and you go the panels from an InputForm, the data will be saved in the current asset. Note: Do not include the post fix ":..." part of the name. Use the shortname "my_field", not "my_field:1" |
Method |
Item[String] | Gets the field associated with this panel instance. Note: Do not include the post fix ":..." part of the name. Use the shortname "my_field", not "my_field:1" |
Property |
Raw | Gets the raw contents of the field associated with this panel instance. Automatically-inserted markup code is removed. Note: Do not include the post fix ":..." part of the name. Use the shortname "my_field", not "my_field:1" |
Property |
UploadedFiles | The set of uploaded files related to this PanelEntry. |
Property |