Adding a title page to the exported EPUB

Comments

8 comments

  • Avatar
    Nils Bier

    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

  • Avatar
    Pavel Skopik

    Hi Niels, thanks a lot! This what I was after :-)

  • Avatar
    Pavel Skopik

    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

     

  • Avatar
    Nils Bier

    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

  • Avatar
    Pavel Skopik

    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

  • Avatar
    Sudhakar verma

    Hi Nils:

    I am also facing the same issue.

    Placeholders are not working in static page like titlepage.html.

    I am using placeholder like $space.name, $page.DisplayTitle.

    Is their any way to do that?

     

    -Sudhakar

  • Avatar
    Nils Bier

    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

  • Avatar
    Sudhakar verma

    Nils- Thanks buddy. It works. Appreciate your fast response.

     

Please sign in to leave a comment.

Powered by Zendesk