placeObject

Syntax

PageItem.placeObject(id [, componentId] [, fileType]);

Parameters

id string

The object’s id

componentId string (Optional)

The component’s id

fileType string (Optional)

The object’s type.

Return value

The placeObject() method does not return anything.

Description

The placeObject() method places a Studio or Enterprise Server object in the target object. The contentType of the target object must match the source object’s. For images, ads, layout modules and image article components the contentType must be ContentType.GRAPHIC_TYPE. For text article components the contentType must be ContentType.TEXT_TYPE. When placing articles, either the component id must be given of the article component, or the article must be a single component article; else the place will fail.

Examples

Example title


Support versions

Adobe Version Support
2020
2021
2022
2023