HOW TO
By default, the ArcGIS Server Geoportal extension 9.3.1 launches ESRI-hosted online Web Help when the 'Help' button is clicked from the geoportal interface. If the online Web Help is not accessible (for example, if the geoportal does not have Web access), clicking 'Help' will then launch the locally installed help files. It is possible to remove this check and launch the locally installed help by default using the steps below. This is recommended if the ESRI-hosted Web Help includes service pack functionality that an organization's 9.3.1 geoportal has not yet implemented.
Code:
/*
if (helpPage.toLowerCase().startsWith("http://") || helpPage.toLowerCase().startsWith("https://")) {
// if help page starts from http:// or https:// that this is a requested halp page
helpPath = helpPage;
} else {
helpPath = buildCheckedHelpPath(REMOTE_HELP_SYSTEM, lang, helpPage);
}
// check if page does exist; if not switch to default language and default page
if (helpPath.length()==0 || !checkUrl(helpPath)) {
helpPath = buildCheckedHelpPath(getRootContext(request) + LOCAL_HELP_SYSTEM, lang, helpPage);
if (helpPath.length()==0) {
helpPath = buildCheckedHelpPath(getRootContext(request) + LOCAL_HELP_SYSTEM, lang, DEFAULT_PAGE);
if (helpPath.length()==0) {
helpPath = buildCheckedHelpPath(REMOTE_HELP_SYSTEM, lang, DEFAULT_PAGE);
// still no luck? use old help system
if (helpPath.length()==0) {
helpPath = getRootContext(request) + "/help/index.jsp?cmd=" + cmd + "⟨=" + lang;
}
}
}
}
*/
Code:
helpPath = buildHelpPath(getRootContext(request) + LOCAL_HELP_SYSTEM, lang, helpPage);
Note:
The LOCAL_HELP_SYSTEM variable, as defined earlier in the index.jsp file, points to the Web Help folder by default. If the default geoportal installation has changed to reference help elsewhere, it will be necessary to update this variable.
Article ID:000010822
Get help from ArcGIS experts
Download the Esri Support App