How can I add concept elements to the Referable Content view?

You can modify existing indexes to display conbody elements such as <p> in the Referable Content view.

Symptom

I want to use elements from a concept topic as conrefs.

Problem

The Referable Content view only shows elements from the referable content topic type, elements from other topics types are not displayed. The required indexes are not defined in the default configuration and must be added manually.

Solution

In your locked topic that contains the element you want to use as a conref, perform the following:
  1. To avoid having every concept topic appear in the Referable Content view, add the outputclass ref-con to the conbody element. This will limit the list in the Referable Content view to concept topics that you specify. For example:
    <conbody outputclass="ref-con">
  2. Add an ID to the element that you want to appear in the Referable Content view. For example:
    <p id="natoque">Natoque id at, quam quisque facilisi, lacus mauris.</p>
  3. Release the topic.
In the TEXTML Administration perspective, perform the following:
  1. Edit the Index Definition file and add the following lines in bold to the existing indexes:
    <index NAME="reusable_element_id">
       <stringindex KEEPEXTRACTEDVALUES="True">
          <elements>
             <element DEPTH="INFINITE" XPATH="//rcbody/*[@id]/@id"/>
             <element DEPTH="INFINITE" XPATH="//*[@id][ancestor-or-self::*[@outputclass='ref-con']]/@id"/> <!-- RC view conbody elements -->
    
          </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)"/>
             <element DEPTH="INFINITE" XPATH="//*[@id][ancestor-or-self::*[@outputclass='ref-con']]/name()"/>   <!-- RC view conbody elements -->
    
          </elements>
       </stringindex>
    </index>
    
    <index NAME="reusable_fulltext">
    <!-- System index required by the IXIASOFT CCMS -->
    <admindescription>Fulltext index on the documents</admindescription>
       <wordindex>
          <elements>
             <element DEPTH="INFINITE" XPATH="//rcbody/*"/>
             <element DEPTH="INFINITE" XPATH="//*[@id][ancestor-or-self::*[@outputclass='ref-con']]/text()"/>  <!-- RC view conbody elements -->
    
          </elements>
       </wordindex>
    </index>
    
    <unit NAME="reusable_units">
       <unitelements>
          <unitelement XPATH="//rcbody/*[@id]"/>
          <unitelement XPATH="//*[@id][ancestor-or-self::*[@outputclass='ref-con']]"/> <!-- RC view conbody elements -->
    
       </unitelements>
    </unit>
        
  2. Right-click on your Content Store. Click Rebuild All Indexes.
  3. When the index has finished indexing, restart your IXIASOFT CCMS Desktop.