Page 1 of 1

conref for navtitle

Posted: Tue Jul 16, 2019 12:25 pm
by MyMoon
Hi!
Please, help.
How to use conref for navtitle? It's just a syntax, I hope...

Code: Select all

    <chapter navtitle="conref="r_00_routines_list.dita#r_00_routines_list/csaa100_desc_ru""> 
doesn't work, of course. I need some proper.

Regards,
Dmitry

Re: conref for navtitle

Posted: Tue Jul 16, 2019 2:53 pm
by Radu
Hi Dmitry,

In general, you cannot use conrefs to reuse attribute values. The only way to do this is with entity references which is not the "DITA" way of doing things.
In this particular case, actually the @navtitle attribute is kind of deprecated, the DITA specification recommends using the <navtitle> element instead:

Code: Select all

    <chapter href="topics/installing.dita" locktitle="yes">
        <topicmeta>
            <navtitle>some content</navtitle>
        </topicmeta>
and because it's an element it can use the @conref attribute.

Regards,
Radu

Re: conref for navtitle

Posted: Wed Jul 17, 2019 4:11 pm
by MyMoon
Thanks, Radu!
But what to do, if I need the "empty" heading, just to name the chapter?

Code: Select all

    <title>Regulated Rates </title>
    <topicref href="atfa290_taxas_regulamentadas.dita"> </topicref>
    <topicref href="atfa290_opcao_importar.dita"> </topicref>
    <topicref href="atfa290_opcao_exportar.dita"> </topicref>
    <topicref navtitle="Technical Data (or some dynamic heading from conref)">
        <topicref href="atfa290_tabelas.dita"> </topicref>
    </topicref>

Re: conref for navtitle

Posted: Thu Jul 18, 2019 7:50 am
by Radu
Hi,

About the same as above:

Code: Select all

<topicref>
        <topicmeta><navtitle>Technical Data (or some dynamic heading from conref)</navtitle></topicmeta>
        <topicref href="atfa290_tabelas.dita"> </topicref>
    </topicref>
Regards,
Radu

Re: conref for navtitle

Posted: Thu Jul 18, 2019 11:52 am
by MyMoon
Thanks!