2.51 Skins and Index Separators

Please post all questions relating to Help & Manual 6 here!

Moderators: Alexander Halser, Tim Green

Post Reply
User avatar
Mike Scott
Posts: 101
Joined: Wed Jul 27, 2005 10:32 pm
Location: Stroud
Contact:

2.51 Skins and Index Separators

Unread post by Mike Scott »

When I look at the HTML code (see below) for Publishing Options | Webhelp | Keyword Index I can see a set from A to Z of <a href links but the finished output does not show me the index separators at the top as I had in some earlier versions of H&M. (I don't think I have ever edited the HTML Source Code.) If I go to a Simple Template Layout I also do not get to see the familiar A to Z near the top of my Index page. What I do see and find a bit confusing is a button for Search and one for Contents as well as the default Index. I find those buttons confusing because I am already in a tab called Keyword Index, not in the Contents or Search tab s.

Q1 -- how can I get a set of A to Z links to show up horizontally spaced across the top of my page?
Q2 -- tips on getting rid of the (to me unwanted) extra buttons please.

Code: Select all

<!DOCTYPE html>
<html><head>
   <title><%TITLE%></title>
   <meta http-equiv="X-UA-Compatible" content="IE=edge" />
   <meta http-equiv="Content-Type" content="text/html; charset=<%DOCCHARSET%>" />
   <meta http-equiv="content-language" content="<%XMLLANG%>" />
   <meta name="robots" content="index,follow" />
   <meta http-equiv="Content-Style-Type" content="text/css" />
   <script type="text/javascript" src="jquery.js"></script>
   <script type="text/javascript" src="jquery.tools.min.js"></script>
   <script type="text/javascript" src="jquery.scrollTo-min.js"></script>
   <link type="text/css" href="<%STYLESHEET%>" rel="stylesheet" />
   <link id="tabscheme" type="text/css" href="hm_topic.css" rel="stylesheet" />
<!--[if IE 9]>
<link id="iesvgcss" rel="stylesheet" type="text/css" href="hm_webhelp_svg.css" />
<![endif]-->
<style type="text/css">
<HMINCLUDE:hmidx.css>
</style>
<script type="text/javascript">
<HMINCLUDE:hmidxinit.js>
</script>
</head>
<body>
<!-- Help & Manual Premium Pack templates by Tim Green, Copyright (c) 2011-2015, All Rights Reserved -->
<ul id="topictabs" class="tabs">
<li id="indextab" class="hmtabs"><a href="#" id="indextablink" class="current"><span><%BTNTEXT_INDEXTAB%></span></a></li>
</ul>
<div id="hmbox">
<div id="hmidxheader">
<p class="navtitle"><%TITLE%></p>
<p class="nojstitle"><a href="<%HREF_CONTENT_PAGE_DYN%>" target="_self"><%BTNTEXT_CONTENTSNOJS%></a> | <b><%BTNTEXT_INDEXTAB%></b></p>
</div>
<div id="hminnerbox">
<div id="idxheader">
<div id="indexRefs">
  <a href="javascript:gotoIndex('#A')" class="idxrefs">A</a>
  <a href="javascript:gotoIndex('#B')" class="idxrefs">B</a>
  <a href="javascript:gotoIndex('#C')" class="idxrefs">C</a>
  <a href="javascript:gotoIndex('#D')" class="idxrefs">D</a>
  <a href="javascript:gotoIndex('#E')" class="idxrefs">E</a>
  <a href="javascript:gotoIndex('#F')" class="idxrefs">F</a>
  <a href="javascript:gotoIndex('#G')" class="idxrefs">G</a>
  <a href="javascript:gotoIndex('#H')" class="idxrefs">H</a>
  <a href="javascript:gotoIndex('#I')" class="idxrefs">I</a>
  <a href="javascript:gotoIndex('#J')" class="idxrefs">J</a>
  <a href="javascript:gotoIndex('#K')" class="idxrefs">K</a>
  <a href="javascript:gotoIndex('#L')" class="idxrefs">L</a>
  <a href="javascript:gotoIndex('#M')" class="idxrefs">M</a>
  <a href="javascript:gotoIndex('#N')" class="idxrefs">N</a>
  <a href="javascript:gotoIndex('#O')" class="idxrefs">O</a>
  <a href="javascript:gotoIndex('#P')" class="idxrefs">P</a>
  <a href="javascript:gotoIndex('#Q')" class="idxrefs">Q</a>
  <a href="javascript:gotoIndex('#R')" class="idxrefs">R</a>
  <a href="javascript:gotoIndex('#S')" class="idxrefs">S</a>
  <a href="javascript:gotoIndex('#T')" class="idxrefs">T</a>
  <a href="javascript:gotoIndex('#U')" class="idxrefs">U</a>
  <a href="javascript:gotoIndex('#V')" class="idxrefs">V</a>
  <a href="javascript:gotoIndex('#W')" class="idxrefs">W</a>
  <a href="javascript:gotoIndex('#X')" class="idxrefs">X</a>
  <a href="javascript:gotoIndex('#Y')" class="idxrefs">Y</a>
  <a href="javascript:gotoIndex('#Z')" class="idxrefs">Z</a>
<div id="callout-wrap">
<div id="callout">
</div>
</div>
<form id="searchForm" style="margin-top: 2px; margin-bottom: 2px;">
<input type="text" name="idxSearch" size="20" value="" id="idxSearch" />
&nbsp;<button type="button" onclick="indexSearch();" title="<%BTNTEXT_INDEXSEARCHTIP%>"><%BTNTEXT_INDEXSEARCH%></button>
<label><input type="checkbox" id="instantsearch" name="instantsearch" checked value="<%BTNTEXT_KWINSTANTSEARCH%>"><span class="searchopts"><%BTNTEXT_KWINSTANTSEARCH%></span></label>
<label><input type="radio" id="startsearch" name="fullsearch" checked value="<%BTNTEXT_INDEXFIRSTSEARCH%>"><span class="searchopts"><%BTNTEXT_INDEXFIRSTSEARCH%></span></label>
<label><input type="radio" id="wordsearch" name="fullsearch" value="<%BTNTEXT_INDEXWORDSEARCH%>"><span class="searchopts"><%BTNTEXT_INDEXWORDSEARCH%></span></label>
<label><input type="radio" id="fullsearch" name="fullsearch" value="<%BTNTEXT_INDEXFULLSEARCH%>"><span class="searchopts"><%BTNTEXT_INDEXFULLSEARCH%></span></label>
</form>
</div>
</div>
<div id="idxbody">
<!-- Place holder for the keyword index - this variable is REQUIRED! -->
<%KEYWORD_INDEX%>
</div> <!-- idxbody --> 
</div><!-- hminnerbox -->
</div><!-- hmbox -->
<script type="text/javascript">
$(document).ready(function() {
// Close popups when clicked so they are not orphaned
$("span.idxlink").click(function() { setTimeout(function(){hmhideLinks();},500)});
});
</script>
</body>
</html>
Mike Scott
User avatar
Tim Green
Site Admin
Posts: 23156
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: 2.51 Skins and Index Separators

Unread post by Tim Green »

Hi Mike,

If you go to "Simple Template Layout" from the Source Code tab in a skin or template with custom code make the template unusable, because doing this replaces all the custom code with the standard template. In Help & Manual 7 we are making it impossible to do this to prevent these accidents in the future. A warning dialog is displayed, but we know how easy it is to get into the habit of clicking those away

If you have done this with a skin that is the reason you are no longer seeing the separators. They are included in all the skins, but if you have deleted the custom index code then you can't get them back in that skin. You need to start with the fresh copy of the skin you were using, I am afraid... :?
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.
User avatar
Mike Scott
Posts: 101
Joined: Wed Jul 27, 2005 10:32 pm
Location: Stroud
Contact:

Re: 2.51 Skins and Index Separators

Unread post by Mike Scott »

Still baffled, Tim. :?

I had seen the warning (and am glad you're trying to get round this restriction). I'd have thought getting rid of any customisations by going to Simple would have restored the default....

However, now I tried this:
1 open up a copy of the skin as issued in Jan 2015
2 find the HTML code for Webhelp | Keyword index
3 select all, copy
4 go back to the skin I've customised other sections of and the Text Variables of
5 paste in the HTML

.... no difference. What do I need to do now?

Cheers -- Mike
Mike Scott
User avatar
Tim Green
Site Admin
Posts: 23156
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: 2.51 Skins and Index Separators

Unread post by Tim Green »

Hi Mike,

What you describe probably won't work. It sounds as though you are copying code from one version of a skin to a later/earlier/different version. That will almost always make a mess. Please start with a fresh version of the skin you are actually planning to use. Don't copy code from anywhere else.
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.
User avatar
Mike Scott
Posts: 101
Joined: Wed Jul 27, 2005 10:32 pm
Location: Stroud
Contact:

Re: 2.51 Skins and Index Separators

Unread post by Mike Scott »

No, Tim, I carefully copied from an original. I only copied that one pageful. Is that the problem? (I have quite a lot of work to do to customise all sections of a skin and wanted to avoid that.)

Regards -- Mike
Mike Scott
User avatar
Tim Green
Site Admin
Posts: 23156
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: 2.51 Skins and Index Separators

Unread post by Tim Green »

Hi Mike,

I'm not sure I understand what exactly you're doing here. Please mail a sample of the skin with a small demo project to support AT ec-software.com (replace the AT with @) and I'll check it out for you.
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.
User avatar
Mike Scott
Posts: 101
Joined: Wed Jul 27, 2005 10:32 pm
Location: Stroud
Contact:

Re: 2.51 Skins and Index Separators

Unread post by Mike Scott »

Very grateful for your advice and help, Tim. Kind of you to have fixed my skin too. :D

Best -- Mike
Mike Scott
Post Reply