I have added header and alias files to the help system.
Here's the code in the test HTML file:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Agari Help Test Page</title>
<script type="text/javascript" src="Agari_Enterprise_Protect_Help/csh.js"></script>.
</head>
<body>
<h1>Agari Help Test Page</h1>
<table cellspacing="2" cellpadding="2" width="100%" border="1">
<tbody>
<tr>
<th>Click this... </th>
<th>To... </th>
</tr>
<tr>
<td valign="top"><input value="Open Help System" onclick-="" k="MadCap.OpenHelp(1025, null, null, null );" type="button">
</td>
<td valign="top">Just open Enterprise Protect help, via
Javascript.<br>
</td>
</tr>
<tr>
<td valign="top"><a
href="Agari_Enterprise_Protect_Help/Default.htm#cshid=[1025]">Open
Help System</a><br>
</td>
<td valign="top">Just open Enterprise Protect help, via link.<br>
</td>
</tr>
For the Javascript call, I tried using both the ID name and value of a topic I knew I had in the alias file. Neither worked.
The MC instructions say "Provide the developer with the output files, as well as the CSH header file. " Yet nowhere can I find instructions anywhere about what developers should do with the header file. I'm guessing this may be a stumbling point, but I'm not sure why. If I'm passing a value to a function, and that function (presumably) has access to the aliases in the built output, I'm not sure what else is necessary.
That said, I don't know why the direct link isn't going to the topic I designate. The help system opens on the home page.
If it is a missing header file in the "code," I did a bit of a search to see if I could add a script tag in the header with a line to import the header file, but couldn't find anything relevant that would explain how. Then again, I don't see anything in the output that I could refer to. The closest files are in the Resources/Data folder, Alias.jx and Alias.xml, but these have no content, only references to something that I can't figure out how to find.
Also, I'm curious: I know that default.htm is the help system's home page (why it's not index.html is a pretty dumb choice, BTW), but what is default.CSH.htm? Is that an additional file that Flare builds and uses when CSH is added to a project?