"Replace with Computed Entries" problem

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
Phlawm53
Sr. Propeller Head
Posts: 442
Joined: Tue Mar 16, 2010 10:58 am
Location: San Francisco, CA
Contact:

"Replace with Computed Entries" problem

Post by Phlawm53 »

------
For Flare 10.2.2, HTML5 Target, W7 64-bit fully patched.

In the TOC of an HTML5 Target that is Published to disk, I'm having a problem with TOC items created via Replace with Computed Entries.
  1. I'm developing a large-ish topic file that begins with a single H1, then includes several H2s.
  2. Some of the H2s are NOT auto-numbered, seven of the H2s are auto-numbered ala mc-auto-number-format: 'T:Task {n+}: ';.
  3. In the TOC entry for that topic, I have selected Auto-generate —> Replace with Computed Entries
I then Build the HTML5 Target, Publish it to C:Content, and load the HTML5 Target's start file into a browser.

In the generated TOC, TOC entries that:
  • Are NOT autonumbered Tasks work correctly: Clicking a non-task TOC entry displays that heading.
  • Are autonumbered Tasks do NOT work correctly: Clicking a task TOC entry displays something like the following
file:///C:/Content/CyborgHelp.htm#/Content/POCWorkflowOverview.htm#Task_4:%C2%A0Save__the_Quadratic_Formula_Node%3FTocPath%3DThe%2520Cyborg%2520Quad%2520Example%2520Project|_____7

The essential point is that the autonumbered task H2s don't work where all other generated H2s do.

Any ideas?

Cheers & thanks for your help,
Riely
Phlawm53
Sr. Propeller Head
Posts: 442
Joined: Tue Mar 16, 2010 10:58 am
Location: San Francisco, CA
Contact:

Re: "Replace with Computed Entries" problem

Post by Phlawm53 »

------
More information: The problem is definitely related to autonumbering.

Here's the H2 I've created to preface certain H2s with "Task: ":

Code: Select all

h2.numberedTask
{
  mc-auto-number-format: 'T:Task {n+}: ';
}
This is in the CSS file's default section since I want the headings to be of the form Task n: This task's heading.

If I move the H2 class into the print media section of the CSS file, in the HTML5 output the computed TOC entries work — but of course there's no "Task n:" autonumbering of the H2.numberedTask headings.

I'd like very much for the headings in the HTML5 target to identify the task number ala the mc-auto-number-format: 'T:Task {n+}: '; attribute. But as I've described, the autonumbering interacts with TOC —> Properties —> Auto-generate —> Replace with Computed Entries.

Cheers & thanks,
Riley
SFO
Last edited by Phlawm53 on Fri Mar 31, 2017 12:04 pm, edited 1 time in total.
Phlawm53
Sr. Propeller Head
Posts: 442
Joined: Tue Mar 16, 2010 10:58 am
Location: San Francisco, CA
Contact:

Re: "Replace with Computed Entries" problem

Post by Phlawm53 »

------
Update after filing a bug with Madcap per bug 73982:
it looks like the behavior has to do with the colon at the end of the autonumber format, if that is removed or changed to anything else the TOC links function normally.
Okay, removing the colon (":") after the word Task provides a circumvention.

But over the years I've seen lots of autonumbering that uses colons ala my Task N: Task title… So my response to Madcap is to clarify whether the interaction between autonumbering and TOC autogeneration is a consequence of an oversight. An oversight that in my opinion needs to be remediated(?)

Cheers & hope this helps,
Riley
SFO
cherid
Jr. Propeller Head
Posts: 3
Joined: Tue Nov 17, 2015 12:21 pm

Re: "Replace with Computed Entries" problem

Post by cherid »

Ah, I have this problem also. Having a colon in a heading and also using the "Replace with Computed Entries" breaks the TOC's functionality for those topics, resulting in 404's. Is there a way to find out the status of the bug (73982)?
Post Reply