![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2012
Device: libre ebook reader
|
Templating Question
I have been looking at the templating language, but I can't work out if I can do what I want:
If a book is part of a series I want it on my device as: {series}/(series_index}_(title} and if it doesn't I would like it on my device as: {author_sort}/{title} Can I do that with the templating? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Note that your example templates are using '(' where you want '{'.
In template program mode: Code:
{series:'test($, template('[[series]]/[[series_index]]_[[title]]'), template('[[author_sort]]/[[title]]'))'} Code:
program: test(field('series'), template('{series}/{series_index}_{title}'), template('{author_sort}/{title}')) |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2012
Device: libre ebook reader
|
Thank You
Wow, I thought I was getting close, but looking at your template I was miles off.
Thank you very much for you help and quick reply. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
question | kellon | Calibre | 4 | 11-21-2011 06:42 PM |
Yet another question | Davet | Nook Developer's Corner | 3 | 01-05-2011 11:35 PM |
Classic Few Nook Question and Question on Nook 3G vs WiFi | blackonblack | Barnes & Noble NOOK | 4 | 07-02-2010 02:07 AM |
Looking for another reader question and PRS-600 question | lilpretender | Which one should I buy? | 9 | 10-24-2009 04:02 AM |
BD Question | Bierius | Sony Reader | 16 | 04-30-2007 05:52 PM |