Page 1 of 1

Map title in index

Posted: Wed May 30, 2018 3:43 pm
by anna_craneo
Hi!

I have a map with several submaps. The structure is the following

Code: Select all

<map title="Main map" toc="yes">
<topicref href="map1.ditamap" format="ditamap" collection-type="sequence"/>
<topicref href="map2.ditamap" format="ditamap" collection-type="sequence"/>
</map>
I run standard transformation DITA -> HTML5.
In index.html I can only see the title of the main map.

Code: Select all

<!DOCTYPE html
SYSTEM "about:legacy-compat">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="copyright" content="(C) Copyright 2018">
<meta name="DC.rights.owner" content="(C) Copyright 2018">
<meta name="DC.Type" content="map">
<meta name="DC.Format" content="XHTML">
<link rel="stylesheet" type="text/css" href="commonltr.css">
<title>Main map</title>
</head>
<body>
<h1 class="title topictitle1">Main map</h1>
Is there any chance to show titles of submaps as well? The may or may not be clickable.

Re: Map title in index

Posted: Wed May 30, 2018 3:55 pm
by Radu
Hi Anna,

All referenced submaps are treated as transparent by the publishing engine (it's as if at publishing time the references to the submaps are replaced with direct references to the topics referenced by the submaps).
So what you want cannot be done.
Maybe you can add <topichead navtitle="..."> elements around your DITA Map references to create those additional levels in the TOC.

Regards,
Radu