Content reuse based on topic type

By changing the configuration of some indexes in the Index Definition file, you can allow users to reuse content from any topic in IXIA CCMS Web.

Each index identifies reusable components users can insert into content.

By default, each index only creates index content in referable-content topics. The index content is what users see as reusable content in the following dialogs:

  • The Referable-Content view in IXIA CCMS Desktop
  • The Reuse Content dialog in IXIA CCMS Web

You can adjust each index to include other topic types that have a specific attribute, such as <topic otherprops="reusable">.

Table 1. Reusable component index types

Type

Function

reusable_element_id

Index of all the descendant elements in <rcbody> that have an id attribute

reusable_element_name

Index of all the names for all <rcbody>descendant elements that have an id attribute

reusable_fulltext

Index of all text for all <rcbody> descendant elements

reusable_units (unit)

Index of all <rcbody> descendant elements of that have an id attribute

referable_component_library

Index of all maps that are designated as referable component library maps

Note: The identified maps have <data name="referable_component_library"> just after the <title> element. There is a default template for them.

Default index configuration

Default index definitions are located in the Index Definition file. The only limitation for how you configure an index is what is possible using XPath.

Note: In general, you must change every index before your configuration updates work properly.

<index NAME="reusable_element_id">
	<stringindex KEEPEXTRACTEDVALUES="True">
		<elements>
			<element DEPTH="INFINITE" XPATH="//rcbody/*[@id]/@id"/>
		</elements>
	</stringindex>
</index>
<index NAME="reusable_element_name">
	<stringindex KEEPEXTRACTEDVALUES="True">
		<elements>
			<element DEPTH="INFINITE" XPATH="for $e in (//rcbody/*[@id]) return local-name($e)"/>
		</elements>
	</stringindex>
</index>
<index NAME="reusable_fulltext">
	<!-- System index required by the DITA CMS -->
	<admindescription>Fulltext index on the documents</admindescription>
	<wordindex>
		<elements>
			<element DEPTH="INFINITE" XPATH="//rcbody/*"/>
		</elements>
	</wordindex>
</index>
<unit NAME="reusable_units">
	<unitelements>
		<unitelement XPATH="//rcbody/*[@id]"/>
	</unitelements>
</unit>