Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-27-2012, 12:55 AM   #1
cesera
Junior Member
cesera began at the beginning.
 
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?
cesera is offline   Reply With Quote
Old 02-27-2012, 02:54 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
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]]'))'}
In general program mode:
Code:
program: test(field('series'), template('{series}/{series_index}_{title}'), template('{author_sort}/{title}'))
chaley is offline   Reply With Quote
Advert
Old 02-27-2012, 03:44 AM   #3
cesera
Junior Member
cesera began at the beginning.
 
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.
cesera is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:41 PM.


MobileRead.com is a privately owned, operated and funded community.