View Single Post
Old 06-09-2024, 07:06 AM   #1002
maddz
Wizard
maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.
 
Posts: 1,411
Karma: 30039536
Join Date: Mar 2010
Location: UK
Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7
Quote:
Originally Posted by maddz View Post
Can someone help with editing a template in the Kobo Utilities plug-in?

Currently, I use the subtitle field for subseries & index:
{#subseries:|| {#subseries_index} - } {#myshelves}

What I want to do is add a new bit which will pull through any "From Where" fields (#fromwhere) that contain the word "Nominee", separating them with a comma if there are more than one. This should be on a new line if there is an entry for subseries.

Is that doable?
Well, in the end I created a custom column for the various nominations and used the following template:

{#subseries:|| {#subseries_index} - } {#myshelves} {#hugonominees:|| - {#hugonominees}}

However, I don't understand why it isn't inserting the hyphen between my shelves and the nominations list when there is an entry in the latter field.

Ideally, I want each section to be on a separate line, but I can't figure out newlines in the template language. I am guessing I should use something like character('newline') or \n...
maddz is offline   Reply With Quote