I have been wanting to do this for a while and now have the motivation to begin.
This past fall, I gave a presentation on how to set up your files (using InDesign) in order to achieve a usable ePub file.
During that presentation, I was asked a very good question that, at the time, I did not have the answer to.
Well, I am happy to say that I now have the answer. So, without further adieu, let's start sharing some Tips & Tricks!
The person who attended my presentation with this issue had the following problem:
She was setting up her page footer information by using defined Variables on her Master Pages (which is a great way to automate).
Unfortunately, she has multiple instances within her documents where it is necessary for her to individually customize some of those footers manually, effectively breaking it's link to the Master Page.
As most of us know, Master page items (such as footers, folios, tabs, etc.) are ignored when exporting to ePub because they are not necessary in that environment.
However, once you manipulate any of these items (as above), they become an element that will now be included in your exported ePub file. Most likely thrown at the end of the document.
If you have a situation such as this, the solution is to use Conditional Text.
Here is a great resource from Adobe on how to use Conditional Text in CS4:
For this particular situation, you would create a new Condition within the Conditional Text Panel. Give it a name, such as "Do not include in ePub". Once this new Condition is established, apply it to every instance of text that is not to be included in your exported ePub file. Simply highlight the appropriate text with your curser and select the new Condition name from the Condition panel. You can even use the Find/Change dialog to apply or change conditions (more info on that in the above Adobe reference).
Now, an important thing to remember here is that you may only apply conditions to text elements. You can not apply them to frames or other objects.
On the left side of your Condition in the Condition Panel, there is an eyeball icon that you use to show or hide all of your text elements with that Condition applied.
If you are sending your file to print or PDF, then you would leave the Condition visible.
Once you are ready to export your ePub file, simply click on the eyeball in order to render those text elements invisible and un-exportable.
I hope this helps many of you out there.