Adding a title page to the exported EPUB
Hello,
I downloaded a trial version of the EPUB exporter and created a custom export template. However I could not figure out how to define additiona content such as title page. Is that possible with the latest version?
Thank you,
Pavel
-
Hi Pavel,
I've updated our EPUB documentation. Please have a look at the following page: http://www.k15t.com/display/EPUB/Defining+Static+Content
Does that help?
Cheers,
Nils -
Hi Nils, I followed the procedure, but I could not view the title page when I opened the resulting epub. After unziping the epub file, I could see that the title page was there. Also the title page was not included in <spine toc="ncx"> although I put it there in the template. Could it be that it needs to be explicitly referenced in toc.ncx as well?
I have yet another question - is it possible to use the placeholders in the static titlepage.html file? Such as $space.name or possibly also the $include.getPage("page name") function? I see that the documentation states that it does, but if I put $space.name
Thanks for your help,
Pavel
-
Hi Pavel,
could you please send your template to support@k15t.com? This will automatically create a support-ticket and we'll then be able to have a deeper look and will come back to you as soon as possible.
Besides, I think there is some text missing at the end of your forum entry. What does happen when you use the placeholder $space.name? It would be great if you could add this information to the support ticket as well.
Cheers,
Nils -
Hi Nils,
This was the missing text:
"I have yet another question - is it possible to use the placeholders in the static titlepage.html file? Such as $space.name or possibly also the $include.getPage("page name") function? I see that the documentation states placeholders can be used with EPUB templates, but if I put $space.name in the title page template, the velocity object is not parsed."
Thanks,
Pavel
-
Hi Sudhakar,
you have to add the following code to your atlassian-plugin.xml:
<resource type="static-resource" name="titlepage.html" location="template/titlepage.html">
<param name="needsRendering">true</param>
</resource>
(delete the resource endtag from the static resource "titlepage" and add thee "needsRendering" command)
This leads to a rendering of the placeholder and the placeholder gets replaced.
I'll add this information to the Scroll EPUB Exporter documentation.
Cheers,
Nils
Please sign in to leave a comment.
Comments
8 comments