Add a pretty URL in DITA - Fluid Topics - Latest

Manage Links in Fluid Topics

Category
Technical Notes
Audience
public
Version
Latest

The ft:prettyUrl metadata element is available for DITA maps and DITA topics.

The following example shows how to assign a value for the ft:prettyUrl metadata key to a DITA map:

<?xml version="1.0" ?>
<!DOCTYPE map PUBLIC '-//OASIS//DTD DITA Map//EN' 'map.dtd'>
<map xml:lang="en-US" linking="none">
  <title>Oleandor Tips</title>
  <topicmeta>
    <othermeta name="ft:prettyUrl" content="Product/Oleandor/Tips"/>
    ... 
  </topicmeta>
  ... 
</map>

The following example shows how to assign a value for the ft:prettyUrl metadata key to a DITA topic:

<?xml version="1.0" ?>
<!DOCTYPE concept PUBLIC '-//OASIS//DTD DITA Topic//EN' 'topic.dtd'>
<topic id="my-topic">
  <title>Tip 1: Time Machine settings</title>
  <prolog>
    <metadata>
      <othermeta name="ft:prettyUrl" content="Product/Oleandor/Time-Machine-Settings"/>
    </metadata>
  </prolog>
  <body> 
  ... 
  </body>
</topic>