Documentation > CMS Template API Library > Input
CrownPeak.CMSAPI.Input
A collection of methods used to create input controls.
Name | Description | Type |
---|---|---|
AddHiddenField | Add a hidden input field to the form with the given name and assettype, produces "File" or "Folder" |
Method |
AddHiddenField | Add a hidden input field to the form with the given name and int value |
Method |
AddHiddenField | Add a hidden input field to the form with the given name and string value |
Method |
EndControlPanel | Marks the end of the control panel. |
Method |
EndDropDownContainer | Closes the drop down container. Will throw an error if called without first calling StartDropDownContainer. |
Method |
EndExpandPanel | Closes the expand panel. |
Method |
EndHorizontalWrapContainer | See StartHorizontalWrapContainer. |
Method |
EndTabbedPanel | See StartTabbedPanel(List{string}). |
Method |
NextDropDownContainer | Advances the DropDownContainer to the next row. Will throw an error if called before calling StartDropDownContainer. Will throw an error if NextDropDownContainer is called more times than there items in the dictionary passed to StartDropDownContainer. |
Method |
NextPanel | Gets the next available panel from the supplied list. Use in the input to loop over a List of AssetPanelEntries which are returned by asset.GetPanelsFromFolder() or panel.GetPanelsFromFolder(). This overload returns an outbound current panel that can be used to get the asset that corresponds with the current list item. |
Method |
NextPanel | Gets the next available panel from the supplied list. Use in the input to loop over a List of AssetPanelEntries which are returned by asset.GetPanelsFromFolder() or panel.GetPanelsFromFolder(). |
Method |
NextPanel | Gets the next available panel from the named list. Always returns at least one entry. Uses data already stored in the asset. |
Method |
NextTabbedPanel | See StartTabbedPanel(List{string}). |
Method |
ShowAcquireDocument | Displays a "select" and "clear" button that is used to upload a document into the current template. |
Method |
ShowAcquireDocument | Displays a "select" and "clear" button that is used to upload a document into the current template. |
Method |
ShowAcquireImage | Displays a "select" and "clear" button that is used to upload an image into the current template. Note: You no longer need to use an upload.aspx, if you want to create a thumbnail. Use the AddAdditionalImage method on the ShowAcquireParams object to define the thumbnails that you want to create. See the examples below. |
Method |
ShowAcquireImage | Displays a "select" and "clear" button that is used to upload an image into the current template. |
Method |
ShowAutoCompleteBox | Adds an autocompletebox control to the input screen. |
Method |
ShowCheckBox | Adds a checkbox control to the input screen. |
Method |
ShowCheckBox | Adds a checkbox control to the input screen. |
Method |
ShowDropDown | Shows a drop down menu selector control. |
Method |
ShowDropDown | Shows a drop down menu selector control. |
Method |
ShowFormSelector | Creates a dropdown that will show the controls associated with the currently selected form, while hiding those that are not. Unlike DropDownContainers, Form Selector Forms are loaded on-demand instead of the asset's initial load. Supports nesting, so calling ShowFormSelector within another FormSelector will work as expected. |
Method |
ShowHeader | Adds a section header to the input screen. Useful for highlighting groups of controls. |
Method |
ShowLink | Creates a link to another asset from the input form |
Method |
ShowLink | Creates a link to another asset from the input form. |
Method |
ShowMessage | Adds a section message to the input screen. Useful for adding a message to groups of controls. |
Method |
ShowMessage | Adds a section message to the input screen. Useful for adding a message to groups of controls. Uses a default message type -- MessageType.Basic. As of build 2669, foregroundColor and backgroundColor will now be ignored. |
Method |
ShowPassword | Adds a password textbox control to the input screen. This features is provided as a convenience for developers. CrownPeak will not be responsible for the security of this password. Template developers will be responsible for handling the security of passwords submitted with this type of text box. Passwords can be handled in the post input template. They can be encrypted before storing or used and cleared depending on the usage. If they are not handled in the post_input, they will be stored in clear text in the asset content properties. |
Method |
ShowRadioButton | Adds a group of radio buttons to the input screen. If the Optional: defaultValue, is provided the radio button will be initialized to the to the defaultValue. Using the Optional: helpMessage, will render help text. |
Method |
ShowRadioButton | Adds a group of radio buttons to the input screen. If the Optional: defaultValue, is provided the radio button will be initialized to the to the defaultValue. Using the Optional: helpMessage, will render help text. |
Method |
ShowSelectColor | Shows a color selector control. |
Method |
ShowSelectDate | Shows a date selector control. Dates are stored in the format "MM/dd/yyyy". |
Method |
ShowSelectDateTime | Shows a date and time selector control. Dates and times are stored in the format "MM/dd/yyy HH:mm:ss" (24-hour time). |
Method |
ShowSelectFolder | Displays a "select" and "clear" button that is used to select a folder. |
Method |
ShowSelectFolder | Displays a "select" and "clear" button that is used to select a folder. Note: Before build 2481, there is a default value for the third argument of the overloaded version of this method. So until build 2481 and higher is available, you will need to pass a third argument to this function. |
Method |
ShowSelectList | Shows a list selector control, which allows the user to select values from a dictionary. |
Method |
ShowTextBox | Adds a textbox control to the input screen. If the Optional: height, is set to a value greater than 0, ShowTextBox will render a multiline textarea. |
Method |
ShowTextBox | Adds a textbox control to the input screen. If the Optional: height, is set to a value greater than 0, ShowTextBox will render a multiline textarea. |
Method |
ShowWcoControls | Adds Wco controls that will bind a field on the asset with a WCO Snippet. Should be paired with an editable text fields of the same name, like a TextBox or Wysiwyg |
Method |
ShowWysiwyg | Shows the WYSIWYG control. |
Method |
StartControlPanel | Creates an control panel. It is used to group a set of controls. You must close the control panel with an EndControlPanel. |
Method |
StartDropDownContainer | Creates a dropdown that will show the controls associated with the currently selected value, while hiding those that are not. All controls that fall under the StartDropDownContainer will correspond to the first item in the rows dictionary. Supports nesting, so calling StartDropDownContainer within another DropDownConntainer will work as expected. |
Method |
StartExpandPanel | Creates an expand panel. The expand panel presents itself as a single gray line that when clicked reveals the set of input controls that it wraps. You must close the expand panel with an EndExpandPanel. |
Method |
StartHorizontalWrapContainer | Creates a container that arranges the contained controls horizontally. If the controls can't fit in one row, they wrap to a new row below the first. |
Method |
StartTabbedPanel | Starts the tabbed panel. Similar to a windows panel, a tabbed panel (unlike an expand panel) displays a list of tabs that when selected shows the hidden panel. |
Method |
StartTabbedPanel | Starts the tabbed panel. Similar to a windows panel, a tabbed panel (unlike an expand panel) displays a list of tabs that when selected shows the hidden panel. |
Method |
CurrentPanel | Get the PanelEntry object corresponding to the current iteration during a NextPanel loop |
Property |