Skip to main content
Participant
February 5, 2010
Question

Conditonal Text Nightmare :) Need Help

  • February 5, 2010
  • 5 replies
  • 692 views

Hello Everyone,

  This is my first post and it has been authored due to hours of fruitless struggle with conditional text.  I am by no means a framemaker expert but I am doing my best to learn. What I would like to accomplish is the following. I have a document that exists in 2 books, install.book or care.book. The document (doc.fm) needs to be worded slightly different between the two books. I have set the wording to use conditional text and seem to have it working correctly as long as I manually set the show or hide options. What I would like to do is have the book know what type of text should be shown or hidden during the print process. If I understand correctly this is exactly what conditional text is for.  I currently have a sentance that should be hidden or shown depending on the book it is attached too.. Any help would be greatly appreciated. Am I even going about this the right way?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Van Kurtz
    Inspiring
    February 5, 2010

    You are going about it in the right way, but to my knowledge, there is no way for the book to know which conditions to set. I assume you have two book files, each containing the common document. When you are ready to print, open one book, set the appropriate show/hide setting for that book, and print it. Then open the second book file, set the show/hide settings to THAT book, and print it. As far as I know, you cannot get the book to do that for you automatically.

    jmootreyAuthor
    Participant
    February 5, 2010

    Thanks Van, I was afraid of that. Would be a nice feature though

    .
    Inspiring
    February 5, 2010

    I'd use a slightly different approach... that, for me, is simpler.

    Set up your main content file with your two conditional text settings.

    In each book, create a new, empty container file from your chapter template. It should have the correct headers/footers, tags, variables and so on for each book.

    Import the main file into each container, specifying to use the container's settings. That will impose the correct variables, tags, and conditional text settings.

    That's it. The single file is read into each container file and set up using each book's settings. You may need to update the book before printing / PDFing in order to ensure that everything is in place, but in the end I think this is less work than juggling settings at the book level.

    ***

    A flavor of this is to "home" the content file in one book and use the container strategy in the second.

    Cheers,

    Art