2 Replies Latest reply on Feb 23, 2009 11:13 AM by kat9322

    Conditional Help without using build tags?

      I am not a real technical person, so if I mess up on my explanation - Sorry!. We have a one software package that can be used 2 different ways depending on a system configuration. I suggested using conditional build tags in order to have the correct help files populate for the 2 different configurations. Howver, they do not want 2 different help files. They want one help file, but want it to pull different help topics depending on they system configuration - kind of dynamically. So, for software 1a, only pull 10 topics, and software 1b, pull those 10 topics, plus an additional 2...but all out of the same help file. Is that even possible?
        • 1. Re: Conditional Help without using build tags?
          Ben Minson Level 2
          Welcome to the community.

          Which output are you producing? If CHM, someone else will have to address that. But for WebHelp, the system developers are going to have to do some work here either way. For the scenario where you have only one set of help files, you could put the 10 in one subfolder within the help folder and the other 2 in a separate subfolder. The developers (or web admin) could restrict permission to the subfolder containing the 2 files based on the user's configuration.

          The problem with not using conditional tags is that if you want those 2 topics in your TOC or index, they'll show up whether the user has rights to see them or not. You'd have to be careful not to link between the 10 files and the other 2; otherwise, the user who has rights to just the 10 will get permission errors if trying to follow a link to the 2. And I imagine that results for the 2 will show up in search results no matter who is doing the searching.

          If you've got only 12 topics in your project, the cost doesn't seem very high to use conditional tags and have two sets of help output, but that's just my opinion.

          Hope this helps,

          • 2. Re: Conditional Help without using build tags?
            kat9322 Level 1
            That is perfect - THANKS. We have more than 12 topics - I just used as an example. Although it is not a very big project - But this is what I needed.
            I really appreciate it. Kat