I know you can set a footer at the bottom of each chapter by going to the book collection and using the Footer tab to define the footer. A team wants the footer only at the end of the last chapter in the book. (It’s a one-book app, and they want a “for more info…” box.)
I change use a Change rule to add things at the end of the last chapter, but I don’t know what to add. The HTML produced by the footer when it is at the end of each chapter is something like this:
<div class="footer"><div class="footer-line"><span class="footer">Pour savoir plus ...</span></div></div>
Is there are backslash marker I can use, or do I just stuff in the code above?
Well, I was hoping that maybe using \footer
would insert <div class="footer">
since that’s what \p
(as an example) seems to do, but it just completely ignores the marker.
And trying to put in something like the HTML above just escapes all of the special characters and outputs the HTML code in the text of the chapter.
I tried to create a Custom Style named div.myfooter
which very encouragingly says that the Custom Marker is \myfooter
. I copied the style of div.footer into this new style. But if I create a Change rule to insert \myfooter Pour savoir plus...
at the end of my chapter, it seems to just ignore the marker, not changing the style, and attaches the myfooter text to the end of the last verse in the chapter.
I just thought I’d share my feeble attempts to show what doesn’t work. Any ideas as to how to actually make this happen?
The team decided that it would be acceptable to have the footer at the bottom of every chapter, so we don’t need this functionality right now. But if anyone has an idea how to do it, it may still be useful in the future.
Thanks,
Jeff