This content has been marked as final. Show 5 replies
Hi rick, Thank you for replying fast. What my issue actually is. For example: I have a book named privileges(book with a link to topic privileges), under that i have another book name Billing(Book without any link). Under billing book, i have some pages. First i kept conditional build tag for privileges topic and generated the output, but the book is visible in the TOC. when i click on privileges, nothing is being displayed as i have kept conditional build tag for the privileges topic. Later, i kept conditional build tags for all the topics under billing. Now i generated the output. Now the privileges book is not being displayed in the toc of the generated output. is it not possible in x5 that i can keep conditional build tag directly for the book. coz it would be difficult if i need to put conditional build tags for all the topics under a book? Waiting for your reply
Hello again Abraham
Okay, so you have a book named Privileges. It is linked to a topic named the same, right? And inside this book is a book named Billing. I'm guessing your TOC structure would look like this:
******** Topic one
******** Topic two
You seem confused that the Privileges book doesn't disappear when you exclude the Privileges topic. If that were to happen, would you also want the Billing book and all topics inside to disappear? Because if the Privileges book were to be removed, anything and everything inside the book would also be removed.
Indeed to remove a book you need to coax all topics linked inside (or inside sub books) to disappear too.
You got my points. Thats what i want. I want to keep a conditional build tag to the privileges book so that i dont want any of the books or topics under the privileges book to be displayed. Is there a method where in i can keep a conditional build tag directly for the Book, instead of keeping for all the topics.. I got the solution. But i am searching for a better solution.
Thanks & Regards,
I'd try creating two TOCs, "hiding" one of them, and swapping them out as needed.
...other project files, topics, images, etc.
Note that each .hhc must be named the same as your project, therefore the two folders to keep them separate and easily identifiable. As needed, then, you would move one or the other to the root of your project and generate your output. Of course, you'll need to keep a constant watch over whether you're actually using the correct one before you generate a specific version, but at least this would save you from conditional hell!