XML configuration interface and managed pages
You can use the XML configuration interface (xmlaccess command) to manipulate managed pages just as you can for other portal resources.
Project scope
When using the XML configuration interface with managed pages, processing occurs either completely within a project or completely outside a project.
xmlaccess -in input_file -url http://hostname:port_number/wps/config/$project/project_name
xmlaccess -in input_file -url http://hostname:port_number/wps/config/$project/project_object_id
- xmlaccess -in Export.xml -url http://www.example.com:10039/wps/config/$project/myproject
- The following command must be entered all in one line:
- xmlaccess -in Export.xml -url
- http://www.example.com:10039/wps/config/$project/
- Z6QReDeN9E86O46P9CGJMK633P8JMG6J1P8MM47MPD6MMCC63PI3IL6GPD63R46J1
xmlaccess -in Export.xml -url http://www.example.com:10039/wps/config/\$project/myproject
Use transaction processing with the XML configuration interface
Because managed pages are stored in the Portal Site library in Web Content Manager, each page has corresponding objects in the JCR database. You must be aware of this relation when you create, update, or delete managed pages with the XML configuration interface (XML Access). If xmlaccess processing is interrupted, it can result in a mismatch between the page state and database state.
To ensure that page and database information for a managed page remain synchronized, use the transaction-level attribute of the request element in the XML file. For more information about using the transaction-level attribute, see XML configuration reference.
<request
type="update"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PortalConfig_8.0.0.xsd"
transaction-level="resource">
Excluding pages from being managed in Web Content Manager
By default, you can manage all WebSphere® Portal pages in Web Content Manager except for the portal administration pages. When an administrator creates or imports a page, the portal checks whether the parent page has a portal page site area in Web Content Manager. If it does, the portal creates a portal page site area for the new page in Web Content Manager as well.
- has-system-mapping=true|false
- Use this flag as follows:
- true
- When the XML script creates or imports a page, the portal creates a page item in Web Content Manager as well.
- false
- When the XML script creates or imports a page, the portal does not create a page item in Web Content Manager.
- (not specified)
- If you do not set a value for this flag in the XML script, it
follows the portal where the page is imported:
- If the portal has managed pages enabled, it creates a page item in Web Content Manager as well.
- If the portal has managed pages disabled, it does not create a page item in Web Content Manager.