Window caption in html5 Top Nav

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets

Window caption in html5 Top Nav

Postby ajturnersurrey on Wed Dec 19, 2018 6:29 am

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/flare2018r2/Content/Flare/Skins/More/Specifying-Caption-Output-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: 330
Joined: Fri Nov 05, 2010 3:30 am

Re: Window caption in html5 Top Nav

Postby ajturnersurrey on Wed Dec 19, 2018 7:04 am

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.
ajturnersurrey
Sr. Propeller Head
 
Posts: 330
Joined: Fri Nov 05, 2010 3:30 am

Re: Window caption in html5 Top Nav

Postby livent on Mon Jan 28, 2019 2:05 pm

Can you be more specific on how to modify the master page?
I'm not too familiar with html and javascript stuff.
livent
Jr. Propeller Head
 
Posts: 5
Joined: Thu Feb 02, 2017 1:14 pm

Re: Window caption in html5 Top Nav

Postby ajturnersurrey on Tue Jan 29, 2019 2:20 am

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.
ajturnersurrey
Sr. Propeller Head
 
Posts: 330
Joined: Fri Nov 05, 2010 3:30 am


Return to Web-based Outputs

Who is online

Users browsing this forum: Google [Bot] and 8 guests