Publish a page using the Portal Scripting Interface
View the Portal Scripting Interface syntax for publishing content.
Use this property to publish the content page or hierarchy from the source server to the target server.
JACL syntax for publishing a page:$Publish publishPage source_server userid passwordtarget_server userid password page_uniquename parent_uniquename sibling_uniquename server_uniquename include_children [true|false]
Example JACL code snippet for publishing a page:$Publish publishPage http://server1.example.com:10040/wps/mycontenthandler wpsadmin wpsadmin http://server2.example.com:10040/wps/mycontenthandler wpsadmin wpsadmin testPage ibm.portal.Home null null trueFor a full code example refer to Example JACL scripts for site management.
Publish parameters:
source_server userid passwordProvide the source server URL, user ID, and password with the appropriate values for environment.
target_server userid passwordProvide the target server URL, user ID, and password with the appropriate values for environment.
page_uniquenameProvide the page unique name on the source server that you want to publish.
parent_uniquenameProvide the page unique name on the target server that you will be publishing to.
sibling_uniquenameProvide the unique name of a sibling page on the target server or specify null. The published page will be inserted before that page in the sequence of sibling pages. If you want page to be inserted as the last sibling page, specify the string null.
server_uniquenameTo add the unique name of the target server to the published page metadata, enter the server unique name, or specify null. If a server name is provided, the published page will be updated to include this string in the page metadata. The Resource Manager portlet can use this server identifier to automatically republish the page to the same server on subsequent publish attempts via the portlet. If you do not want the page metadata to be updated, specify the string null as the value.
include_children [true|false]This parameter determines whether children of the page will be published along with the page. Specify true or false.
Parent
Portal Scripting Interface extension for site management
Promoting a page using the Portal Scripting Interface
Demoting a page using the Portal Scripting Interface
Example scripts for site management