Map templates that automatically generate topics
You can create a map template that automatically generates topics when a users creates a map from the template.
By default, automatically adding topics to a map template result in topic stubs: empty objects created in the map that act as placeholders in preparation for content development.
xtrc="generate"
attribute to the topicref
. For example, consider the following map
template:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//IXIA//DTD IXIA DITA Map//EN" "IxiaMap.dtd">
<map id="mte1408546420716" xml:lang="en-us">
<title>Template Map</title>
<topicref navtitle="About this document"
type="concept.xml"
xtrc="generate" />
<topicref navtitle="Requirements"
type="concept.xml"/>
</map>
In this instance, the map creation process automatically generates an "About this document" topic and creates a topic stub for the "Requirements" topic.
Location of topic templates
The type
attribute in the topicref
element must refer to a topic template stored
in the system/templates/topic folder of the Content Store. If your topic templates are organized into subfolders,
you must specify the subfolder structure in the type
attribute. For example, consider the following structure in the
Content Store:
type="Technical Content/concept.xml"
type="Technical Content/reference.xml"
type="Release_Notes_Templates.xml"