Collapse all topics in TOC

HI,
I have several merged helpsets. How can I collapse all topics programmaticly while initializing the JavaHelp system in my application.
TIA
Mario

There's a common misconception that what is in your TOC gets published.
The TOC is used the first time you generate a printed document. Thereafter, there is no update for good reason, you may want different topics. To update to what is in the TOC you need to click the Left arrow to clear everything from the right pane, then click the right arrow to put the new version of the TOC across to the right.
If you look at the current version of the TOC you will see some books on the left are not highlighted. That indicates there are topics in that book that are not on the right.
See Printed Documentation on my site.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge

Similar Messages

  • Expand all/ Collapse all topics button and Visited Topics color

    Hi
    First of all, I am not sure if it is a good idea to create one post for two queries. But I have these two requirements for my project.
    1. I need a Expand all/ Collapse all button(s) on the toolbar, which will open and close all books in the ToC. Is it possible to have one? How?
    2. Is it possible to have a different color for the visited topics on the ToC? How?
    Thanks
    Sreekanth

    Your requirements are
    1. I need a Expand all/ Collapse all button(s) on the toolbar, which will open and close all books in the ToC. Is it possible to have one? How?
    Not something I have ever seen.
    2. Is it possible to have a different color for the visited topics on the ToC? How?
    Same answer.
    Sorry.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I am looking to add a button to reset the TOC (collapse all books)

    Our end users are getting lost in the open books - yes, I realize it's a whole different problem, but I have been asked to add a button to "reset" the TOC books to collapse all the books.
    We are using RH 10 and IE 8
    I've looked all over for existing javascript that would do that, but I can't find it. Is that something that someone else has done already? I am not a scripting person.
    Thanks!
    Laura

    So, I have tried a few different things in the action tab
    the actual web address (it's an intranet site ...website_name/index.htm
    And just index.htm here (where it says News_Feed.htm)
    This is a parent/child project -- the newsfeed page is the only page in the parent (and it is the default page) -- the button in the top toolbar takes you to the newsfeed, but we wanted it to refresh the entire page.
    Thanks!

  • Is it possible to add an Expand all/Collapse all button in WebHelp Output?

    Hi there,
    We now have > 15 child projects in our merged online help, each containing hundreds of topics. Each child project is a chapter in our WebHelp online help output.
    If a user opens a couple of topics in each project, the TOC can become difficult to navigate. Is it possible to add a button that enables users to collapse all of the open chapters / expand all of the closed chapters? We are using RoboHelp 10.
    Thanks a lot,
    Niamh

    Hi there
    Expanding all could be problematic. But collapsing all should be a snap. That is, as long as you don't mind one teensy side effect. That side effect would be that the default topic would load up in the Topic pane and replace whatever topic was open at the time your user clicked the Collapse All.
    The way to Collapse All is to simply create a hyperlink that re-opens the WebHelp start page. Things reload fresh (with the TOC all nice and collapsed).
    If you would like to suggest to the Adobe development team that we actually get proper collapse or expand all buttons, please feel free to suggest it using the link below:
    http://www.adobe.com/go/wish
    Cheers... Rick

  • Topics in TOC are not being published in Word output

    Windows 7
    RoboHelp 9.0.2.271
    Word 2010
    I am having an on again/off again problem with RH not publishing all topics.
    The topics are in the RH TOC and when I double-click them while in RH, they open for editing.
    However, when I publish these same topics, they are not in the Word document--although they are in the web help.
    Previous fixes include rebuilding the TOC (groan) or finding that rogue piece of code that causes topics not to print in Word or web help.
    Question 1:  Does anyone know why this is happening?
    Question 2:  Short of manually comparing RH TOCs against Word and web help (for 13 books), does anyone have any ideas on how to ensure all topics are included in the output?
    Thanks in advance for any help.
    Mary

    There's a common misconception that what is in your TOC gets published.
    The TOC is used the first time you generate a printed document. Thereafter, there is no update for good reason, you may want different topics. To update to what is in the TOC you need to click the Left arrow to clear everything from the right pane, then click the right arrow to put the new version of the TOC across to the right.
    If you look at the current version of the TOC you will see some books on the left are not highlighted. That indicates there are topics in that book that are not on the right.
    See Printed Documentation on my site.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to collapse all folders in list view

    If you search on this topic, there are many discussions about it without a real solution.  The challenge is the following: you have a list view of many folders, some of which are expanded, and some are not ( to expand/collapse a folder you click on the little triangle by the name of the folder ).  Lilke many users on the apple discussions I wanted to collapse all of them with one action instead of clicking on each folder individually.
    I found a solution on superuser.com:  first, in the list view, select all with command-A, and then press Command-(left arrow).  To expand all, do Command-A followed by Command-(right arrow).
    I hope that helps, and my apologies if this solution has been given before, but I didn't find it with my 5 minute search. 

    Thank you very much! Exactly the solution I was searching for. Aloha!

  • Use Topic in TOC more than once...

    We have just purchased RoboHelp 6 for our Help System
    generation as well as to begin developing online training courses.
    I have a WebHelp File that contains 5 books - one book per
    procedure. I have a topic that is applicable to two procedures.
    Without having to make a copy of the topic, is it possible to set
    up the TOC to use the topic in question more than once?
    The problem arises when I am setting up the Browse Sequence.
    I tried to set up the Browse Sequence using the Auto-create using
    TOC...option, but the sequence appears to be in alphabetically
    order. In fact, it is in no way, shape or form even close to the
    TOC (as indicated in the Help - Topics in each browse sequence will
    be in the same order as in the TOC)!!!
    So, I tried to manually create the browse sequence. I used a
    browse sequence to contain all topics, then I set up another browse
    sequence to contain the duplicate topic. When I use the navigation
    arrows to move through the toc, it will not advance to the second
    browse sequnce.
    Any ideas or suggestions would be greatly appreciated. Thanks
    in advance.
    Lisa

    Hi LNT1
    The trick to all this is to never directly link from the TOC
    to the desired topic. Let's assume the TOC should have a topic
    appearing in two different places. In order to make this work, you
    link from two different redirect pages.
    Now if you generate WebHelp, I see where there could be an
    issue, because the browse sequence can only link from one topic to
    another. In other words, a topic can only have a single link to and
    a single link from it. So in this case, the redirect trick would
    fail. However, another trick comes to mind that may work. Instead
    of a Redirect page, you could have two different pages that instead
    of redirecting, contained an Inline Frame (IFRAME) that simply
    displayed the contents of the desired page. Basically, the pages
    containing the IFRAME would link properly and provide the desired
    effect.
    For more on IFRAMEs, download my Tips and Tricks file and
    scan it for how to create IFRAMES.
    Cheers... Rick

  • Missing Topics in TOC

    When I generate webhelp the TOC comes out fine. When I
    generate either a word or .pdf file the first two topics/books are
    missing. They are listed in the Chapter Layout. The headings are
    the same as the other topics that are printing in the TOC. Any
    suggestions?

    Just noodling here a little . . .
    1. Which heading style(s) are you using for topic titles? Are
    they consistently applied for all topics, looking at the html view?
    Are there any stray spaces or html code immediately before the
    <begin heading> tags?
    2. Are you generating print doc with the project's style
    mapping dot, or some other?
    3. Did you select "Maintain HTML heading levels"?
    In points 2 and 3, I don't know whether these settings (or
    which option) may be causing the problem; just suggesting that you
    change one at a time to test print output.
    Harvey

  • Post RH 9 Upgrade Expand All and Collapse All not working.

    After upgrading to RoboHelp 9 from 7 - the Collapse All and Expand All is not working.  I am taking over after attending a RoboHelp 9 Training Class a little over a week ago, so any help would be appreciated.

    Hi,
    What is your output? Where are the show/hide buttons placed: In the topic or in the toolbar? You're using RoboHTML right?
    Did you use any kind of twisties in your RoboHelp 7 project? The show all hide all buttons are controlled by a custom script and I'd like to know which method you are using. (If you know which.) See also http://www.grainge.org/pages/authoring/twisty/twisty.htm
    If you're not sure which method you are using, can you post the HTML of the show/hide all button/link?
    Greet,
    Willam

  • RH7 Topics in ToCs report?

    I have a project that has 11 different layouts: 2 go to
    WebHelp, 9 go to Word, with variable content determined by both
    ToCs and conditional build tags. The customer wants minor changes
    to a few topics in the Word output. The quickest way is to edit the
    individual Word docs and the Source files separately, because of
    the time it takes to generate new output to in Word and then
    reformat the content to make it look good.
    Is there an easy way to find out, for a particular topic,
    which ToC (or layout) it appears in? 114 topics x 11 ToC variants =
    a lot of lists to cross-check!

    Hi Philip.
    I fear there is no easy solution to this. I seem to remember
    you use RH7? I don't use that version and can't remember if it has
    the ability to report over multiple layout. I don't think so.
    What I would do is print off each of the 11 TOCs. You can do
    this from the output files. Then use the Topic Properties to report
    on the build tags. You can turn this on (and all the other options
    off) via the options tab. You could use this report to identify
    which tags are applied to specific topics and then mark the TOC
    topic entry with a highlighter.
    As I said, it's far from pretty but is a way of simplifying
    things a little and reducing the risk of missing things.

  • RH7 (HTML) - Is there a way to print ALL topics in a book?

    I've generated an HTML project and users want to know if there is a way to print all topics in a book instead of printing one topic at a time. We have the print selected topic and print all topics in book options with generated help (.chm). Can anyone help?

    When you select Print, this is the dialog you get.
    The output will not adhere to your CSS so don't expect it to be pretty. There's information about this on my site.
    It might be better to create PDFs and make them available from the TOC or somewhere in your help.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do I add a code snippet to all topics in project?

    I have some java code that I need to add within the header of every topic in my help project. Is there an easy way to do this instead of individually adding topic by topic?

    Hi,
    What version of RH are you using? What do you mean by header? The  section in HTML or just in the top of every topic?
    Try a master page/template. You can create a header and add the code in there. Assign the master page to all topics et voila.
    Greet,
    Willam

  • Adding a link to expand and collapse all DHTML drop downs

    Hi, can anyone help me adapt the "Skinny on Skins" example "Add a Toolbar button to expand and collapse all DHTML drop downs" so that it will work with just a simple HTML link in RH8, instead of being attached to a custom skin button?
    The example looks like this:
    Step 1. Open the Skins Editor for the skin where you want to add the button.
    Step 2. After the preview loads into the window, ensure that the Toolbar tab has focus, then click the plus symbol. The Custom Toolbar Item dialog should display.
    Step 3. Type the Item Name (This is simply an internal reference for the button).
    Step 4. Type the Text (This is the text that will be seen by the end user. The field must contain something. So if you don't want any verbiage to display for your toolbar item, simply type a space.)
    Step 5. Choose your Image Options, then click the Action tab.
    Step 6. Click the JavaScript option button.
    Step 7. Enter the following code in the OnClick field:
    javascript:toggle()
    Step 8. In the JavaScript area, ensure the Inline JavaScript option button is selected, then click the edit (Pencil) icon located to the right.
    Step 9. Enter the following code in the Inline JavaScript dialog
    var show = "false";
    function toggle() {
    parent.frames[1].bsscright.focus();
    var arrayofDivs = parent.frames[1].bsscright.document.all.tags('DIV');
    if (show == "false") {
    for (x=0;x<arrayofDivs.length;x++) { arrayofDivs[x].style.display = "block";}
    show = "true";}
    else {
    for (x=0;x<arrayofDivs.length;x++) { arrayofDivs[x].style.display = "none"; }
    show = "false"; }
    Step 10. Click the OK button to close the Inline JavaScript dialog.
    Step 11. Click the OK button to close the Custom Toolbar Item dialog.
    Step 12. Click the OK button to close the Skin Editor.
    Step 13. Generate WebHelp via File > Generate > WebHelp and ensure that you have the new button selected with a check mark. This will probably require stepping through some screens to see the place where you can select it.
    Many thanks
    Jonathan

    Hi again
    I want to use it in the header of one of my Master Pages, so it will only be created/maintained once. Not all my pages have drop downs in so rather than have a toolbar button available for every page, I was trying to be a bit cuter by having two Master Pages - one for normal pages and one for pages with drop downs in.
    I'm no javascript expert so I'll see if one of my developers can help.
    Thanks anyway
    Jonathan

  • Acrobat 7.0 Collapse All bookmarks

    Is there any way to collapse all nested bookmarks not only the Top-level. I have PDF files that can be drilled down to the exact page using the bookmark tabs. The trouble I am having is that once my Framemaker document is converted to PDF all of its book marks are automatically expanded. I know you can choose Option>Collapse Top-Level Bookmark, this in nice however it doest not collapse the bookmarks that are nested under those top-level marks.
    Thanks

    Here's the basic script. If you need help using it with a custom menu item or toolbar button, post again. Note that the function can be used to open all bookmarks as well, dependening on the bOpen parameter. You can run this from the JavaScript console (Ctrl + J) buy cutting & pasting the code, select all of it with the mouse, and hitting Ctrl + Enter, assuming you have the document you want to affect open.
    function setParentBookmarks(bm, bOpen) {
        var i;
        // If the current bookmark has any children...
        if (bm.children !== null) {
            // Open/Close the current bookmark
            bm.open = bOpen;
            // Continue with all children of this bookmark                     
            for (i = 0; i < bm.children.length; i += 1) {
                setParentBookmarks(bm.children[i], bOpen);
    // Close all parent bookmarks
    setParentBookmarks(bookmarkRoot, false);
    George

  • Add code to all Topics in one go

    Hello,
    I've been trying to figure this out but I just don't understand why this is happening. I'm using sed (in cygwin) to append a javascript and iframe to topics but following the sed all topics become forbidden.  It must be with how I did sed so I just wanted to find out:
    if there is a way to modify the masterpage with some constant content and it will roll out to all child topics. I am trying to add an iframe and javascript to all topics. The code will be exactly the same for all topics (i've created a dynamic page that will display content base on the parent page). Would I use placeholder? Adobe scripting?

    Hi,
    The Find replace tool doesn't allow for multiple line replacement.
    You can use a third-party tool for that. FAR is quite popular. See http://helpware.net/FAR/
    See http://www.adobe.com/devnet/robohelp/articles/robohelp-extendscript.html for an introduction to scripting with RoboHelp.
    The following script may be a good example script: http://www.wvanweelden.eu/robohelp/scripts/ierendertags
    Be sure to check out the standard script provided by Adobe. Please post back if you have any questions.
    Greet,
    Willam

Maybe you are looking for

  • A very difficult problem of JTreeTable

    I am now creating a xml editor by the use of swing. I have drafted an interface and uploaded to this http://fungho.uhome.net/temp/SAMPLE.jpg This interface has the tree with the following xml schema: <book version="2" language="English"> <content num

  • PGP Encryption Exception in File and SFTP receiver adapter.

    Scenario: We have got the PGP (Private and Public key pair) and stored the same in PI server path. We have sample partner Public key which is store at temporary shared location for testing purpose. Issue: While doing the encryption we are getting bel

  • Implement MAX / JOIN in ODI 10g?

    What is the approach for using MAX functions in ODI 10g? I need it to filter source data: SELECT SRC_TAB.*        FROM SRC_TAB INNER JOIN (SELECT MAX(COL1) COL1, COL2  FROM SRC_TAB GROUP BY COL2) B ON SRC_TAB.COL1=B.COL1 AND SRC_TAB.COL2 = B.COL2 Luc

  • Protocol handler issue (ed2k)

    for previous versions of Linux FF, this was answered at http://support.mozilla.org/en-US/questions/754041 and http://kb.mozillazine.org/Register_protocol The answers there no longer work. On Linux ff v25, how does one associate a protocol (ed2k: in t

  • Image file used for "Image Fill"

    Hi, In the "Road Trip" iWeb template there is a wood background. I want to create a square shape and use "image fill" to make it look like wood. Where do I find the image they are using for this fill? , Jonathan Power mac G5   Mac OS X (10.4.6)