I've added a new button to the TopicToolBar skin, and I've set the button's Event->Click field to call a showHelp() function defined in the Toolbar page's Custom JavaScript, but due to the nature of our multiple targets, all of which have a slightly different path to the top level of the built output (where the Default.htm file is found), and the occasional deployment as a zipped output folder that starts with a file URL, I can't seem to find the right JavaScript to get the function to "link" to the doc navigation topic at the top of the file hierarchy (at the same level as Default.htm) of our HTML5 output.
For a bit of background, here is the basic structure of the project:
Code: Select all
Content
CommonContent
ProjectA
ProjectA.htm
ProjectB
ProjectB.htm
DocNavigation.htm
Project
Targets
OnlineOutput
projectA
projectB
Code: Select all
CommonContent/
ProjectA/
Data/
Resources/
Skins/
Default.htm
Search.htm
... (a few other files)
Code: Select all
https://company.com/documentation/<targetName>/
https://qa.company.com/documentation/<targetName>/
file:///drive:/any/random/path/to/<targetName>/
I've searched the forum, the MadCap Flare help, and the MadCap Flare KB, but nothing is providing me with quite the right solution. Getting/setting any of the standard location.href.* attributes doesn't take me to the right level of the built URL and I don't want to have to do a whole parsing exercise, as the URLs have no common component that I can search for.
I can't use relative paths since this button would be clickable on any page and has no way of knowing how deep you are in the topic hierarchy. I tried various versions of the solutions found here: viewtopic.php?f=9&t=17145 and here: http://kb.madcapsoftware.com/mobile/Bas ... nTopic.htm to no avail. There is an implied possible solution here, but nobody ever responded to the query: viewtopic.php?f=9&t=21826.
I know this should be possible to do in some way because Flare itself does it with the Search function. Regardless of where the built files are located (server, local file system), and regardless of which page you're on in the hierarchy, if you click on the Search button to search for a text string, it knows exactly where to find that Search.htm page. Similarly, clicking on the logo in the top nav header takes you to the "home" page of the output, but it seems to be using Flare magic that is not exposed to the mortal user.