0 Replies Latest reply on Jun 23, 2011 12:05 AM by LaKisha1

    Missing Snippet Descriptions (upgraded from RH7 to RH9)

    LaKisha1 Level 1

      Hi all,

       

      I've pretty much successfully upgraded my RH7 project to RH9. I only noticed two problems, one of which is the subject of this thread - the descriptions for each of my snippets isn't displaying. It looks to me like this problem has something to do with the way descriptions were previously stored (in a title tag for RH7 and lower versions?) versus the way the descriptions are now stored (in a meta tag, i think, for RH8 and higher versions?).

       

      I took a look at the hts file for one of my snippets that was upgraded from RH7 to RH9. The code looks like this (I've bolded the snippet description):

       

      <?xml version="1.0" encoding="utf-8" ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <meta name="generator" content="Adobe RoboHelp 9" />
      <title>Use this text above the table that explains Action menu items.</title>
      </head>

       

      <body>
      <p style="margin-top: 2pt; margin-bottom: 2pt;">Select an action from the
      menu and click Go. </p>
      <p style="margin-top: 2pt; margin-bottom: 2pt;">&#160;</p>
      <p style="margin-top: 2pt; margin-bottom: 2pt;"><span class="NoteTitle">Note:</span>
      The Action menu may change depending on the content, the content's status,
      your permissions and what you have already accessed. Therefore, the options
      explained below may not all be available at the same time.</p>
      </body>
      </html>

       

      THEN, I created a brand new snippet in RH9. The code looks like this:

       

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <meta name="topic-comment" content="this is a new test snippet" />
      <title>New Snippet</title>
      <meta name="generator" content="Adobe RoboHelp 9" />
      </head>
      <body>
      <p>This is placeholder text for your snippet. To add content to the body,
      replace this text. </p>
      <p>&#160;</p>
      <p>For information about applying snippets to topics, press <b>F1</b>.</p>
      </body>
      </html>

       

      Notice how the description for the brand new snippet starts with "<meta name" but for the snippet that was created in RH7 (and then automatically upgraded by RH9), the description for the snippet starts with "<title>".

       

      I have 101 (exact count) snippet files and would hate to have to go into each one and modify this line of code myself, so my question is this:  Does anybody know a good, faster way to 'upgrade' all of my hts (snippet) files to follow the new RH9 format?

       

      Here are two things I've tried:

      1. Using TextPad, I manually made the change in the .hts file. Result: The description still does not display in the Description column in the Snippets pod (on the left in the screenshot below), but it DOES display in the Snippet Properties window (on the right in the screenshot below).

      AddToCart.jpg

      2. Copying the description from TextPad, then opening the Properties window for the snippet and pasting the description into the Description field, and saving the snippet. This WORKS...but I'll have to do it 100 more times to fix all my snippets, AND the Title tag still ends up being incorrect.   Although things LOOK correct in the Properties window (i.e., the Name field indicates the correct name for the snippet, and the Description field now contains the correct description), here's the resulting code:

       

      <meta name="topic-comment" content="Use this text as the explanation for the Add To Cart Action menu option." />
      <title>Use this text as the explanation for the Add To Cart Action menu option.</title>

       

      So, the meta and title tags end up having the same values! The title tag should say "Add To Cart" - I don't know how it's possible that it doesn't contain this text as the value for the title tag. Thus, it seems like in order to get the descriptions in there correctly, I have to do a copy, then paste into the Properties window in RH9, but to correct the Title tags I have to open the .hts files in a text editor (i.e., *outside* of RH9) and enter the correct title text for each snippet. Is this really going to be this time-consuming to fix?