0 Replies Latest reply on Dec 10, 2012 12:26 PM by AIR-Chayah

    Master page: header changes are not reflected in existing topics

    AIR-Chayah Level 1

      A few months ago this forum helped me to troubleshoot and fix problems with the Show More | Show Less command that I inherited from a previous writer.  I chose to use the Single Button approach and used this code, on the Master Page, for "onclick":

       

      <body>

      <?rh-script_start ?><script src="ehlpdhtm.js" type="text/javascript" language="JavaScript1.2"></script><?rh-script_end ?>

      <?rh-region_start type="header" style="width: 100%; position: relative;" ?>

      <table style="height: 10px;" cellspacing="0" width="100%">

        <col width="186" />

        <col width="481" />

        <col width="97" />

        <tr>

         <td><h2><img src="NGP_Logo_small.png" alt="" style="border: none;"

             border="0" /></h2></td>

         <td><h2 style="text-align: right; margin-right: 20px;">Help</h2></td>

         <td><h2><img src="btnshowall.gif" onclick="ShowAll(this)" alt=""

             style="border: none;" border="0" /></h2></td>

       

      This worked fine until recently when I changed the logo in the left cell of the header table. Today I discovered that the img src = line had gone away. And so I re-entered it, and it works fine on new topics, and on some, but NOT all topics.

       

      Here's what happens on an older topic:

      1. Preview the topic.
      2. Click Show All button. A Script Error message appears: "The value fo the property 'ShowAll' is null or undefined, not a Function object. Code = 0. file = ...../Help/Administration/rlt1F1.htm.

       

      Here's the HTML code for this topic, which is missing the code btnshowall code.

       

      <body>

      <?rh-script_start ?><script src="../ehlpdhtm.js" type="text/javascript"

              language="JavaScript1.2"></script><?rh-script_end ?>

      <?rh-placeholder type="header" ?>

      <table cellspacing="0" width="100%">

      <col style="width: 80.663%;" />

      <col style="width: 19.337%;" />

      <tr>

        <td><h1><?rh-variable_start name="title" format="default" showcode="showcode"

                value="Setting Global Defaults" ?>Setting Global Defaults<?rh-variable_end ?></h1></td>

        <td style="vertical-align: bottom;"><p style="text-align: right;

                   margin-bottom: 6pt; line-height: Normal;">&#160;</p></td>

      </tr>

      </table>

       

      I tried setting the Master Page to None and then re-setting it to Main. That does not help.

       

      The only workaround I've found so far is to create a new topic, copy the content from the old topic, delete the old topic, and rename the new topic using the old topic's name. But that is very tedious.

       

      Any thoughts on how to fix the problem without recreating every topic?

       

      Thank you.

      Carol