Window caption in html5 Top Nav

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
ajturnersurrey
Sr. Propeller Head
Posts: 346
Joined: Fri Nov 05, 2010 3:30 am

Window caption in html5 Top Nav

Post by ajturnersurrey »

I know this can be changed, because I did it in a previous version of html5 Top Nav help....

I set the Window caption to come up as <target name, hard coded somewhere possibly?>-<topic title>
I have duplicated this help to modify for a new purpose, only I can't now find the place to change that target name...

Is there anyone out there can help me?
(I checked https://help.madcapsoftware.com/flare20 ... Window.htm only to be told this can't be set for html5 Top Nav, which I know to be a lie!)
ajturnersurrey
Sr. Propeller Head
Posts: 346
Joined: Fri Nov 05, 2010 3:30 am

Re: Window caption in html5 Top Nav

Post by ajturnersurrey »

Ah..ha!

Nothing like posting to request help, to cause a break through....

I found that my master pages included

Code: Select all

        <script>
			document.title = "xxxxxxxx online help - " + document.title;
		</script>
and the xxxxxxxx needed changing!

Clearly too clever for my own good when I set up the last project!
Hope this helps someone else.
livent
Jr. Propeller Head
Posts: 7
Joined: Thu Feb 02, 2017 1:14 pm

Re: Window caption in html5 Top Nav

Post by livent »

Can you be more specific on how to modify the master page?
I'm not too familiar with html and javascript stuff.
ajturnersurrey
Sr. Propeller Head
Posts: 346
Joined: Fri Nov 05, 2010 3:30 am

Re: Window caption in html5 Top Nav

Post by ajturnersurrey »

I am no expert in Java (I always use scripts software guys have suggested!) but including them is simple.

If you look at your master page by choosing Open With > Internal Text Editor
It will start with:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd">
There may then be some meta data information, a link to a stylesheet or two, and (if you want) a script, allinside the header section, surrounded by

Code: Select all

<head>...</head>
The main part of the page starts inside the

Code: Select all

<body>...</body>
section

Whatever is in there will run every time a page opens using that master page.

My header section looks like this, in order to include that script renaming each window with a better title:

Code: Select all

<head>
        <meta charset="utf-8" />
        <meta name="description" content="" />
        <meta name="author" content="" /><title></title>
        <script>
			document.title = "xxxxxxxx online help - " + document.title;
	</script>
        <link href="../Stylesheets/Styles.css" rel="stylesheet" type="text/css" />
    </head>
Hope that helps.
Post Reply