in
Innovasys Logo

Alias for topics

Last post 01-08-2008 5:38 AM by Gabriel. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-03-2008 3:04 AM

    Alias for topics

    Hello,

     How can I create an alias for a topic in a HTML Help 1.x project with HelpStudio?

    I refer to something like this: http://msdn2.microsoft.com/en-us/library/aa188516(office.10).aspx

    Thank you.

     

  • 01-07-2008 12:05 PM In reply to

    Re: Alias for topics

    You can define the Help Context Id (or Help Context Ids) for a Topic in the Topic Properties editor. HelpStudio comes with a VB6 context id mapper tool, and also a Context Id Mapper if you have a .h file containing the context ids that you want to map to.

    Richard Sloggett
    Innovasys
    http://www.innovasys.com
  • 01-08-2008 4:32 AM In reply to

    Re: Alias for topics

    Sorry, I did not explain well.
    What I want is to create string alias with Help Studio. In example:

    C# Code

    // This code open Help File on page HelpPage1.html
    Help.ShowHelp(this, "HelpPage1.html", HelpNavigator.TableOfContents);

    // This code must open HelpPage1.html too
    Help.ShowHelp(this, "AliasToHelpPage1.html", HelpNavigator.TableOfContents);

     

    How cain I make an string alias from a topic page to another?

    I am thinking on creating an AliasWidget with some javascript code like: document.location.href='HelpPage1.html', where HelpPage1.html must be a parameter when inserting the widget.

    But, I am not sure it is possible to do neither how to do it.

    Thank you very much.

  • 01-08-2008 4:55 AM In reply to

    Re: Alias for topics

    You cannot create a pure alias, but what you can do is create the second topic in HelpStudio and use the Include Topic widget in the content to make it's content always be identical to the first topic.

    Richard Sloggett
    Innovasys
    http://www.innovasys.com
  • 01-08-2008 5:38 AM In reply to

    Re: Alias for topics

    That solution works but has a problem: the breadcrumbs bar is different in the two pages.
    I have found an alternative solution to avoid this.

    First, I create an AliasToHelpPage1.html file with this content:
    <html>
    <body onload="document.location.href=HelpPage1.html'">
    </body>
    </html>

    Then I add AliasToHelpPage1.html file to project in Other Files folder in Project Explorer.

    Thanks for everything.

Page 1 of 1 (5 items)