Page 1 of 1
pre populate navtitle
Posted: Tue Jun 29, 2010 10:04 pm
by bjlockie
The "navtitle" attribute in the ditamap should be populated with the contents of the <title> element in a topicref.
This information is shown in the map view.

Re: pre populate navtitle
Posted: Wed Jun 30, 2010 8:26 am
by Radu
Hi,
Yes, the DITA Maps view presents either the navtitle attribute set to the topic reference or the title extracted from the referenced topic.
As the DITA Open Toolkit usually does the same when generating output I do not think it is usually a good idea to have the title specified both in the referenced topic and in the navtitle attribute. In this way if the title changes it has to be modified in two places.
Can you tell us more about your usecase?
Also, when would you like the navtitle to be set to the topic title, when inserting a new topic reference or when invoking some kind of a special action?
Regards,
Radu
Re: pre populate navtitle
Posted: Wed Jun 30, 2010 8:10 pm
by bjlockie
Radu wrote:Hi,
Yes, the DITA Maps view presents either the navtitle attribute set to the topic reference or the title extracted from the referenced topic.
As the DITA Open Toolkit usually does the same when generating output I do not think it is usually a good idea to have the title specified both in the referenced topic and in the navtitle attribute. In this way if the title changes it has to be modified in two places.
Can you tell us more about your usecase?
Also, when would you like the navtitle to be set to the topic title, when inserting a new topic reference or when invoking some kind of a special action?
Regards,
Radu
I was adding topics to a ditamap that was originally created in FrameMaker and it set the navtitle in new topic references.
Oxygen should do whatever the dita-ot does.
