View Single Post
Old 07-19-2022, 12:14 AM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
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.
davidfor is offline   Reply With Quote