+

Search Tips   |   Advanced Search


Promote a page by using the Portal Scripting Interface

View the Portal Scripting Interface syntax for promoting content.

promotePage

Use this property to promote the content page or hierarchy on the target server.
JACL syntax for promoting a page:

$Publish promotePage targetserver userid password pageuniquename integer_value include_children [true|false] stop_on_error [true|false]
Example JACL code snippet for promoting a page:

$Publish promotePage http://reclabl101.rtp.raleigh.ibm.com:10040/wps/mycontenthandler wpsadmin wpsadmin com.ibm.portal.published_testPage 0 true true

target_server userid password

Provide the target server URL, user ID, and password with the appropriate values for your environment.

page_uniquename

For the page unique name provide the object ID of your page.

integer_value

Specify an integer value after the page name to determine how you want the pages and hierarchy to be published. When you run the scripting command, the process compares the subtree hierarchy of the page that you are promoting on the source and target portals and then adds, replaces, or deletes nodes and customized preferences according to the specified integer value as follows:

0

This option adds, replaces, and removes pages and nodes on the target portal to exactly match the subtree of the source portal. It preserves customized preferences on replaced pages.

1

This option adds and replaces pages and nodes on the target portal by those from the source portal and leaves nodes that are not affected unchanged. It preserves customized preferences on replaced pages.

2

This option adds, replaces, and removes pages and nodes on the target portal to exactly match the subtree of the source portal. It overwrites customized preferences on replaced pages.

3

This option adds and replaces pages and nodes on the target portal by those from the source portal and leaves nodes that are not affected unchanged. It overwrites customized preferences on replaced pages.

include_children [true|false]

This parameter determines whether children of the page will be published along with the page. Specify true or false.

stop_on_error [true|false]

This parameter determines whether to stop the publish process on the first error. Specify true or false.


Parent topic:

Site management extension of the Portal Scripting Interface


Related reference


Publish a page by using the Portal Scripting Interface
Demote a page by using the Portal Scripting Interface
Example JACL scripts for site management