Showing the -cshid identifier in a topic

This forum is for all Flare issues not related to any of the other categories.
Post Reply
henkjans
Propeller Head
Posts: 86
Joined: Wed Feb 02, 2011 1:59 am

Showing the -cshid identifier in a topic

Post by henkjans »

hello,

programmers asked me if it is possible to show the -cshid identifier in the topic which is connected to it.
For example, the help file is called with:

HelpViewer.exe -file [path to help system] -cshid [identifier] -search [search_string]
HelpViewer.exe -NL_Manual -1000 (no search string)

file "NL_manual.mchelp" opens with topic "Welcome.htm" (which is the alias for 1000 in this case)
Now I would like to show 1000 in the welcome topic, in an automatically way. Not manualy because I know that topic welcome.htm is connected to value 1000

I hope I made my question clear enough
thx.
Thanks,
Henk Jan Schut
The Netherlands
NorthEast
Master Propellus Maximus
Posts: 6365
Joined: Mon Mar 05, 2007 8:33 am

Re: Showing the -cshid identifier in a topic

Post by NorthEast »

I wrote a blog article about how to do this in HTML5 output:
https://ukauthor.wordpress.com/2015/06/ ... ent-topic/

I'm guessing from the reference to HelpViewer.exe that you're using the legacy DotNetHelp output.
I haven't tried this script with DotNetHelp, but it works for me with HTML5 output.
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

Re: Showing the -cshid identifier in a topic

Post by pdenchfield »

Dave Lee wrote:I wrote a blog article about how to do this in HTML5 output:
https://ukauthor.wordpress.com/2015/06/ ... ent-topic/
Hi Dave,

Thanks for this succinct how-to! Questions:

1. How to prevent URL from breaking? After publishing to my company-only server, I get the URL https://help.nintextest.com/en-US/nwc/D ... cshid=4142 but it resolves to https://help.nintextest.com/en-US/nwc/# ... cshid=4142 [an extra hash before Default.htm] and breaks.
NOTE: I updated the lookup.js to find the numerical identifier - var currentID = $(this).attr("ResolvedId")
2. Show all assigned identifiers? The solution assumes that each topic is linked to only a single ID (if any). My project has individual topics linked to multiple IDs due to combining content that was previously referenced separately.
3. Update the help path to show a known variation? Specifically I'd like to provide a public variant of the above: https://help.nintex.com/en-US/nwc/Default.htm#cshid=4142 (so devs use the right URL).
4. Open in a new tab? Should be easy....
peka01
Jr. Propeller Head
Posts: 1
Joined: Tue May 18, 2021 11:29 pm

Re: Showing the -cshid identifier in a topic

Post by peka01 »

Hi, I tested this script in a HTML5 output, built with 2021 r3 but cannot get it to work. Is it me or have there been updates in Flare, causing it not to work?
Post Reply