+

Search Tips   |   Advanced Search

XML configuration interface and managed pages

We can use the XML configuration interface (XML Access) to manipulate managed pages just as we 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. When you import a published page and specify a project scope, the page is created as a draft page in the project.

Important: We cannot export a draft page and then import that page as a draft in another project.

Important: Web Content Manager items, such as workflow items, categories, or keywords, are not exported or imported by the XML configuration interface (XML Access). We need to use the XML configuration interface (XML Access) library export and import feature instead. To run the xmlaccess command from within a project, specify the project either with the project name or with the object ID of the project. The command uses the following format, depending on how you identify the project:

For example:

Note: AIX HP-UX Linux Solaris: You might have to precede the dollar sign ($) with a backslash (\) to prevent $project from being interpreted as an environment variable. For example:


Use transaction processing XML configuration interface

Because pages are stored in the Portal Site library in Web Content Manager, each page has corresponding objects in the JCR database. We must be aware of this relation when we create, update, or delete pages with the XML configuration interface. If xmlaccess processing is interrupted, it can result in a mismatch between the page state and database state.WARNING: If you redeploy the site daily, the JCR size increases because of page versions. Periodically clean up your versions to reduce the JCR size. Go to Clearing version history for information.

To ensure that page and database information for a 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, go to XML configuration reference. Example:


Excluding pages from being managed in Web Content Manager

By default, we can manage all HCL 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. We can exclude pages from being managed in Web Content Manager. We can prevent the creation of the corresponding page item in Web Content Manager. The page is then not available to be managed in managed pages. It is good practice to exclude only pages on first-level nodes, for example the Search or Applications pages. To do so, run an XML configuration interface script and use the content-mapping-info element with the attribute has-system-mapping:

Note: There is no indication in the user interface whether a page is managed in Web Content Manager or not. Therefore, excluding parts of a site can lead to an inconsistent portal user experience for portal site visitors.

Parent topic: Administer managed pages