Element.setLayoutActivateState (Method)

Sets the Active/Inactive state for a layout.

Returns:

Void

Arguments:

Name Type Required Description
elementTypeID ElementTypeID Required The ID of the element type (i.e. PageIndex=36).
layoutID ID_NEG1 Required The ID of the layout, or negative one (-1) for the standard rendering.
isActive Boolean Required A boolean flag which when set to true indicates that the layout should be enabled (active).

Context:

License Requirements (none)
Permission Requirements site:ManageElements
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
15026 The specified layout is not valid for the specified element.
15035 The specified layout is default for this element type and cannot be made inactive.

Notes:

None