PAGEHEAD_CLOSED option ignored when help is embedded

This forum is for discussions on the Help & Manual Premium Pack and the Premium Pack Toolbox configuration utility introduced with Premium Pack 3

Moderators: Alexander Halser, Tim Green

Post Reply
Marc
Posts: 53
Joined: Mon Dec 18, 2006 1:47 pm
Location: Germany
Contact:

PAGEHEAD_CLOSED option ignored when help is embedded

Unread post by Marc »

We are uising a Modern_Standard_Very_Plain_WebHelp skin (version 4.0) for an embedded help system. The PAGEHEAD_CLOSED option is set to FALSE because we do want to see the header. When the help is opend in a standard browser tab, this works fine. However, when the help is embedded, the header hides after the help page has been loaded. In many cases this surely makes sense where there isn't much screen real estate for the help. But we have plenty of space and would really like to keep the header as a label for the help system. Is there any possibility to achieve this (even if it involves changing the source code in one of the skin's baggage files)?
User avatar
Tim Green
Site Admin
Posts: 23153
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: PAGEHEAD_CLOSED option ignored when help is embedded

Unread post by Tim Green »

Hi Marc,

This option isn't currently included because it was assumed that the header should always at least start out of view when the help is embedded. Generally speaking, we considered that if the help constitutes enough of the page to start with the header open then it will have its own page rather than being embedded. Since a couple of users have now asked for this we're going to add this option as well for embedded help. :)

You can change this yourself with the following simple edit: Open the skin in Toolbox, select Baggage Files and edit the hm_webhelp.js file. Search for the following lines of code:

Code: Select all

function embedInit() {
			if (hmDevice.embedded && hmDevice.desktop) {
				if (hmpage.$headerbox.is(":visible"))
					hmWebHelp.pageDimensions.pageHeaderUpDown(true);
					$("p#ptopic_breadcrumbs").hide();
				
			} ... 
Comment out the lines inside the first if clause braces, like this:

Code: Select all

function embedInit() {
			if (hmDevice.embedded && hmDevice.desktop) {
				/*if (hmpage.$headerbox.is(":visible"))
					hmWebHelp.pageDimensions.pageHeaderUpDown(true);
					$("p#ptopic_breadcrumbs").hide();*/
				
			} ... 
It's important not to delete anything. Just add /* and */ in the two places shown above.

We'll be adding an option to do this with a setting in the next update. In the meantime, you really should update to 4.1. The Modern Standard skins that you are using, in particular, have been cleaned up and improved in many ways in that update. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Marc
Posts: 53
Joined: Mon Dec 18, 2006 1:47 pm
Location: Germany
Contact:

Re: PAGEHEAD_CLOSED option ignored when help is embedded

Unread post by Marc »

Works perfectly. Thank you so much!
Post Reply