+

Search Tips   |   Advanced Search

XML configuration interface and content associations

With xmlaccess.sh, we can perform batch updates of content associations or export associations to import into another portal. Content association information is represented in the XML configuration schema by content-mapping-info elements.


Export content associations

The content associations for a web content page are represented in an XML export file as nested content-mapping-info elements.

The following example represents a web content page with two content associations:

<content-node action="update" content-parentref="6_000000000000000000000000A0" domain="rel" objectid="someOID" preserve-old-layout="true" type="label">
  <content-mapping-info>
    <content-mapping content-id="74-11" default="false"/>
    <content-mapping content-id="007" default="true" delegated-access-level="User"/>
  </content-mapping-info>
</content-node>

If no content-mapping-info elements are present in an XML export document, there are currently no content associations defined for the web content page.


Import content associations

When importing content associations with an XML import file, associations for a web content page are represented in the content-mapping-info element for the web content page. Any content associations that are already defined for the web content page are removed when you perform the import process and replaced with the new associations.

The following example updates a web content page to have two specific content associations:

<content-node action="update" content-parentref="6_000000000000000000000000A0" domain="rel" objectid="someOID" preserve-old-layout="true" type="label">
  <content-mapping-info>
    <content-mapping content-id="74-11" default="false" />
    <content-mapping content-id="007" default="true" delegated-access-level="User"/>
  </content-mapping-info>
</content-node>

If no content-mapping-info element is present in an XML import document, no changes are made to the content associations currently defined for the web content page.


Delete content associations

We can delete content associations by specifying an empty content-mapping-info element in the XML import file.

The following example updates a web content page to delete any defined content associations:

<content-node action="update" content-parentref="6_000000000000000000000000A0" domain="rel" objectid="someOID" preserve-old-layout="true" type="label">
  <content-mapping-info/>
</content-node>


Parent: Content associations reference

Related:

xmlaccess.sh

xmlaccess.sh