Configure the AddIds trigger to automatically assign IDs to elements
In the xpathforids.xml configuration file, you can specify the elements of a map or topic for which you want automatically assigns IDs to specified elements when you release maps and topics.
When a user releases a map or topic, the IXIASOFT CCMS checks whether the elements configured in the xpathforids.xml file have an ID. If an ID is already assigned, it is kept as is. Otherwise, the CCMS generates a unique ID and assigns it to the element.
For example, the following code specifies that IDs will be generated
for sections, figures, and tables when a user releases a topic and for topic groups
when a user releases a
map:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xpaths PUBLIC "-//ixiasoft.com//cms//config//idsxpath" "xpathforids.dtd">
<!-- Defines the list of Xpath for elements that must have an ID -->
<xpaths>
<xpath value="//*[contains(@class, ' topic/section ')]"/>
<xpath value="//*[contains(@class, ' topic/fig ')]"/>
<xpath value="//*[contains(@class, ' topic/table ')]"/>
<xpath value="//*[contains(@class, ' map/topicgroup ')]"/>
</xpaths>
Note: You should make these configuration changes in the Test environment and test them before copying them to the Production environment. In a dedicated SaaS deployment, after testing the changes, ask IXIASOFT Customer Support to copy the changes to the Production environment.