Case Sensitive topic names

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

Moderators: Alexander Halser, Tim Green

Post Reply
matthew.vollnhofer

Case Sensitive topic names

Unread post by matthew.vollnhofer »

Hi, I have the following scenario.

1. I have a project with TOPIC IDs that contain capitals e.g. Topic1_Chapter1
2. A website with manual versions by year.
3. To link back to previous years manuals from within a current topic I have built a dynamic links. e.g. http://<mywebsite>/Tutorials/2015/index.html?<%TOPICID%>.htm
3. When I export the project as WebHelp the following happens:
3.1 The capitals are stripped off in the published URLs e.g. topic1_ chapter1.htm
3.2 My dynamic link however contains the capitals as per my http://<mywebsite>/Tutorials/2015/index.html?Topic1_Chapter1.htm
4. The result is that the link does not work. (Note: if I manually change the capitals in the URL to small letters, the link works)
5. Is there a way of converting the <%TOPICID%> to small letters, or another good solution.
User avatar
Tim Green
Site Admin
Posts: 23181
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Case Sensitive topic names

Unread post by Tim Green »

Hi Matthew,

The TOPICID variable is specifically designed to not downcase the ID. It returns it in its original state for the cases where that is what you need. The variable you need to use here is <%HREF_CURRENT_PAGE%>, which returns the HTML file name of the current page, including the extension. So your link should be:

Code: Select all

http://<mywebsite>/Tutorials/2015/index.html?<%HREF_CURRENT_PAGE%>
See the chapters on variables in the Reference section of the HM help for lists of all the available variables you can use. :)
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.
matthew.vollnhofer

Re: Case Sensitive topic names

Unread post by matthew.vollnhofer »

Hi Tim,

Thanks very much!
Post Reply