Quote:
Originally Posted by Carmelocotonto
Thanks. Something like...
epub:save_to_disk = ([{#words} - {comments}] -> comments)
But I don't see what happens. Where will the new 'comments' be?
I have created custom columns but I have never used templates. Any help will help me.
This is what I want (I have modified this one by hand):
Attachment 180021
And then, polish epub.
|
What you have would work. But, it would be pretty ugly on the device. What I use is:
Code:
{comments}{:'raw_field("tags")'|<p><b>Tags:</b> |</p>}{rating:rating_as_stars()|<p><b>Rating:</b> |</p>}{#kobo_last_read:|<p><b>Last Read:</b> |</p>}{:'test(field('#words'),'<p>',test(field('#pages'),'<p>',''))'}{#words:|<b>Word count:</b> |}{:'test(field('#words'),test(field('#pages'),' ',''),'')'}{#pages:|<b>Page count:</b> |}{:'test(field('#words'),'</p>',test(field('#pages'),'</p>',''))'}
That produces something like:
Quote:
This is the book comment.
Tags: Science Fiction, Space Opera
Pages: 200 Words: 123450
|
The complications in the plugboard is in case any of the values are missing.
Another was
posted in the Kobo forum in the last couple of days. That one puts the details first. And the post has some screenshots of what it looks like on a Kobo device.