ContainerElement.insertElement (Method)
Inserts an element within a page's container element.
Returns:
ControlID (integer)
Arguments:
Name | Type | Required | Description |
---|---|---|---|
pageID | RealPageID_NonBaseTemplate | Required | The ID of the page or soft template on which the container element resides. |
containerInstanceID | ContainerElementInstanceID | Required | A container element's instance ID. |
elementTypeID | ElementTypeID | Required | The element type's ID. |
position | InsertAtPosition | Optional. Defaults to 'Bottom'. | The position within the container at which CommonSpot inserts the element. Your options are 'Top' or 'Bottom'. |
Context:
License Requirements | (none) |
Permission Requirements | element:Author |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock | 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 |
---|---|
1000301 | The element $1 does not exist on the specified page. |
1000303 | CommonSpot could not insert the element. |
Notes:
None