Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to edit RoboHelp TOC in a text editor

Community Beginner ,
May 23, 2024 May 23, 2024

I work with a team that uses RoboHelp. I do some editing — but not enough to justify installing RoboHelp, et al — so I work with the raw HTML in a text editor.

We've recently added a TOC. But when I edit the TOC file, the changes do not appear on the actual pages.

 

For example, if I change...

<page navtitle="ARICLE TITLE" href="../path/article.htm" format="html" processing-role="normal"></page>

...to...

<page navtitle="ALTERNATIVE ARICLE TITLE" href="../path/article.htm" format="html" processing-role="normal"></page>

 

That new navtitle doesn't change on the actual page.

 

I'm hoping someone here can tell me what I'm missing here. Is there another file that I have to edit in tandem with the .toc file? Is there something in the CSS? Or am I just out of luck, and have to ask my teammates to make these edits for me — or download sevreal GB if intrusive software just to make this one edit?

 

Thanks!

533
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 23, 2024 May 23, 2024

That is probably because the navtitle of a page is non-existent, in the sense that the 'navtitle' always defaults to the html title. You cannot specify another title.

You can only edit the navtitle of a book.

 

Let's say you have the following TOC:

WoutJacobs_1-1716451264941.png

This has the following htm:

WoutJacobs_2-1716451456071.png

 

You can easily change section 1, section 2 by editing their navtitle.

You can also add a navtitle to Template FAQ, though I'm not sure if that is allowed. Template FAQ is a page (topic) that has been converted to a book (=section)).

WoutJacobs_4-1716451688165.png

 

WoutJacobs_3-1716451661629.png

 

Now, if you want to change how topics are displayed in the TOC (i.e., pages), you have to edit the actual topic title of the referenced htm file:

WoutJacobs_5-1716451752162.png

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2024 May 23, 2024

@WoutJacobs Whilst the TOC defaults to the topic title on creation, the titles can then be changed so that they are different titles. Perhaps because the author wants something shorter in the TOC.

 

Whilst the title can be changed in the HTML, normally it would be done via the Properties of the topic.

 

image.png

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 23, 2024 May 23, 2024

Thanks for the detailed reply...but the <page navtitle>s already don't match the <title>s of almost every page in our documentation.

For example ...

<page navtitle="Syncing Overview" ...>

...opens a page with the <title> of "Syncing and accessing data across devices"

 

So we're already overriding the <title>s

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2024 May 23, 2024

Topic title and topic heading are different things. Could that be a factor? 

________________________________________________________
My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 24, 2024 May 24, 2024

Nope. Topic pages have matching <titles> and headers. Edits are taking place exclusively in the TOC, where almost every <page navtitle> is a shortened version of those titles/headers.

 

Having said that, the problem has mysteriously resolved itself — so mysteriously, in fact, that now I'm wondering if I just did something really stupid, like pull up the wrong branch in my browser after checking in the changes. I mean, I'm pretty sure I didn't do that, but I was working in the middle of the night (collaborators are 12 hours away), so I suppose it could have been a working-sleepy issue.

 

I'm just going to assume user error, *head-desk* myself and move on.

 

Thanks, @Peter Grainge.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2024 May 23, 2024

Not surprisingly people who support this forum are regular RoboHelp users so we don't need back door methods and wouldn't have looked into them. We make changes using the TOC editor.

 

One thing you need to understand is that the title of a topic is not necessarily the same as the title in the TOC. They are different fields.

 

I think you would be better off to make the changes on a colleagues machine. If you change the title there, you will still need to change it in the topic.

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 23, 2024 May 23, 2024

Point taken. I just didn't know where else to ask. Not much RoboHelp discussion going on at Reddit or anywhere else. 🙂

 

The TOC's <page navtitle> being different from the target page's <title> is exactly what we're going for. I want to change only the <page navtitle> and not the topic's <title>. That's exactly what I did, editing the ____.toc file directly. But that edit literally didn't change anything. The TOC still renders with the previous <page navtitle> — which, again, didn't match the topic's <title> even before my edit. That's why I'm stumped.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 06, 2024 Jun 06, 2024

After experiencing it for myself, I can confirm the issue. The page navtitle in a TOC is ignored even when editing it in the UI.

 

Instead, the output follows whatever value is in <h1>. The problem seems to occur when h1 does not directly follow body.

 

In my initial situation, the topic had the following structure:

<body>

  <h1>blablabla</h1>

</body>

 

When editing the page navtitle, the edited value was accepted by the TOC title.

 

However, I recently added a global div to each body in the 4000 topics of our project (to address yet another bug that I can't be bothered to explain):

<body>

  <div class="safeguard">

  <h1>blablabla</h1>

 ...

</div>

</body>

 

This disconnect between the body and the h1 seems to break the page navtitle functionality. So I think you should check in your topics if h1 directly follows body and if not, see if making it so will help your issue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 06, 2024 Jun 06, 2024

I'm still not clear here. 

 

 <h1>blablabla</h1> is the topic heading, nothing to do with the topic title or TOC.

 

image.png

 

This is the topic heading for the same topic.

 

image.png

 

On creation they all default to the same thing. Thereafter if you change the topic heading, nothing else changes.

 

The TOC can be set up to be independant or change when the Topic Title (not heading) changes.

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 06, 2024 Jun 06, 2024

Topic Title is whatever shows in Topic Properties.

 

In the TOC it defaults to being the same but in the TOC you can change it to whatever you want. Here an asterisk indicates it is no longer the same. To revert to the default you delete the text here and save. The default will then be reapplied.

 

image.png

 

Whether or not this helps the issue is another matter. 🙂

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 06, 2024 Jun 06, 2024
LATEST

I believe PDF and Frameless work differently. I forgot to specify that this problem occurs only for PDFs.

 

Starting situation

Take a topic with an h1 'First Topic H1' and a topic title 'First Topic TITLE'. It is added to a TOC:

WoutJacobs_0-1717672631771.png

WoutJacobs_1-1717672663702.png

WoutJacobs_4-1717672921949.png

 

You publish it to PDF:

WoutJacobs_2-1717672874943.png

H1 appears to be used by default for PDF. Frameless probably uses topic title instead.

 

Navtitle edit

The navtitle gets edited in the TOC:

WoutJacobs_5-1717672999392.png

Publishing it leads to the expected result:

WoutJacobs_6-1717673041987.png

Navtitle edit 2

The same action is performed, only this time a div is placed between body and h1.

WoutJacobs_7-1717673102127.png

Publishing it now will result in the navtitle being ignored and H1 being used again, which may be the problem encountered by OP:

WoutJacobs_8-1717673136954.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp