View Single Post
Old 07-19-2022, 12:19 AM   #3
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by davidfor View Post
You add it in exactly the same way as the word "words" was added.

The last line of the template is concatenating strings together into a longer one. Changing this to the following should work:

Code:
subtitle = strcat(field('#pages'), ' pages', ' |', word_count, ' words')
You can combine the second and third parameters, but, the above is what I would usually do to keep each part of it separate and easy to change later. Though it probably has a small performance hit.
Thank you. I tried putting pages before I posted here but my punctuations were way off. Now it works fine and good with your examples.

Since we are on the topic of subtitle? is there a way to use the estimated reading hours that kobo added to the two recent fw updates to show instead of the number of words/ word count?
Deobulakenyo is offline   Reply With Quote