Contents | Start | End | Previous: KB0093: Why don't imported list bullets show up? | Next: KB0095: Why do I get the error 'bookmark not found' when using endnotes?


KB0094: How can I have different content in my book depending on the distributor?

See also: Working with conditional content in the Jutoh manual

You might need to have different text according to where you are uploading your book, such as Smashwords, Google Play, Apple Books, Amazon and so on. For example, you might need the links to your other books to be site-specific.

There are several ways to implement conditional content, but one way is to use Jutoh tags, and create a new configuration for each variation.

Edit the properties for each of your documents (right-click on the document in the outline and click Properties). Give all common documents a tag such as "all", except for the distributor-specific documents - give these an appropriate tag such as "amazon", "nook", "smashwords" and so on.

Next, add (with "+") a new configuration for each of your distributors. For each configuration, in the Include sections matching tags option, specify "all,XXX" where XXX is an appropriate tag for this configuration such as "amazon" or "nook".

Now when you compile your book with a given configuration, only the correct documents will be used.

If you use the advanced table of contents method where the TOC is in the project, give the TOC the "all" tag and check "Automatically create TOC" in your TOC preferences (or the TOC wizard) so that the TOC is rebuilt for the given correct set of documents (unless no titles or links actually change, in which case you can get away without rebuilding the TOC each time).

Another method that avoids having duplicate sections is to create distributor-specific paragraph styles with names that you can match in Paragraphs to exclude and Paragraphs to include; see "Using styles to change ebook content" in Chapter 12 (Working with Style Sheets) in the Jutoh book.

Or, you can use condition objects to bracket chunks of content, such as a paragraph, several paragraphs, or small piece of text. Please see Working with conditional content in the Jutoh manual for more on this.

For small changes in content, for example ISBNs, you can use string tables in conjunction with configurations. See How to add an ISBN to your books.


Contents | Start | End | Previous: KB0093: Why don't imported list bullets show up? | Next: KB0095: Why do I get the error 'bookmark not found' when using endnotes?