in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Managing generated JavaHelp TOC expanded/collapsed books

Last post 05-21-2008 8:49 AM by Pewi34. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-13-2008 11:27 AM

    • Pewi34
    • Not Ranked
    • Joined on 05-13-2008
    • Posts 3

    Managing generated JavaHelp TOC expanded/collapsed books

    Hello,

    I am using Doc-To-Help 2005 in order to generate a JavaHelp for my application. By default, when I open the generated JavaHelp for visualization, all the table of contents topics from the root level are opened. For example, if *** symbolizes a book and --- symbolizes a topic, I automatically get:

    ***BOOK 1
          ---TOPIC 1_1
    ***BOOK 2
          ***BOOK 2_1
          ---TOPIC 2_2
          ---TOPIC 2_3
          ***BOOK 2_4

    However I would like the default view to be set like this:

    ***BOOK1
    ***BOOK2

    Basically, this result is easy to obtain afterwards, by editing the generated ...-toc.xml file and by adding the expand = false parameter to each <tocitem> concerned. However, I will need to regenerate this JavaHelp often and cannot modify the XML manually each time, and I would like to avoid making a complicated script if not necessary.

    Is there a Doc-to-Help 2005 (or in a newer version) functionnality in order to define how many levels of TOC will be shown by default?

    Thanks in advance,
    Regards.

    Filed under:
  • 05-14-2008 7:43 AM In reply to

    Re: Managing generated JavaHelp TOC expanded/collapsed books

    Hi,

     

    Well the expanded TOC is the default behavior of Java help. As you have mentioned that by adding the expand=false in the toc.xml we can make it collapse.

     

    I tried the same on my end but when I rebuilt the project the changes made in the toc.xml are lost. Are you making some changes in the Doc-To-Help project also?

     

    Have a nice day.

     

    Regards,

    Andrew

    <Pewi34> wrote in message news:204818@10.0.1.98...

    Hello,

    I am using Doc-To-Help 2005 in order to generate a JavaHelp for my application. By default, when I open the generated JavaHelp for visualization, all the table of contents topics from the root level are opened. For example, if *** symbolizes a book and --- symbolizes a topic, I automatically get:

    ***BOOK 1
          ---TOPIC 1_1
    ***BOOK 2
          ***BOOK 2_1
          ---TOPIC 2_2
          ---TOPIC 2_3
          ***BOOK 2_4

    However I would like the default view to be set like this:

    ***BOOK1
    ***BOOK2

    Basically, this result is easy to obtain afterwards, by editing the generated ...-toc.xml file and by adding the expand = false parameter to each <tocitem> concerned. However, I will need to regenerate this JavaHelp often and cannot modify the XML manually each time, and I would like to avoid making a complicated script if not necessary.

    Is there a Doc-to-Help 2005 (or in a newer version) functionnality in order to define how many levels of TOC will be shown by default?

    Thanks in advance,
    Regards.



    http://helpcentral.componentone.com/cs/forums/p/75236/204818.aspx#204818

  • 05-14-2008 7:57 AM In reply to

    • Pewi34
    • Not Ranked
    • Joined on 05-13-2008
    • Posts 3

    Re: Managing generated JavaHelp TOC expanded/collapsed books

    Hello and thanks for your answer,

    In fact we agree: we can manually edit the XML file but it is necessary to do it at each build (I have a very large project so it's impossible for me).

    I currently do not change anything in the Doc-to-Help project: in fact, that is my question! Is there any parameter in Doc-to-Help which could automate the writing of the "expand=false" tag, or is it mandatory to edit it afterwards?

  • 05-21-2008 8:49 AM In reply to

    • Pewi34
    • Not Ranked
    • Joined on 05-13-2008
    • Posts 3

    Re: Managing generated JavaHelp TOC expanded/collapsed books

    Hi again,

    Does somebody have any element to bring in order to answer to my question? Or do you think that what I am asking (showing a collapsed tree by default without editing the XML file manually) is impossible?

    Thanks again.

Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.