View Single Post
Old 04-07-2015, 01:04 AM   #4
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,469
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by StillReading View Post
Thanks, that works beautifully! I've played around a bit with the "{fieldname:|Prefix|Suffix}" syntax and tried to combine that approach with your example, but couldn't get it working properly. Best I got was the formatted pubdate, directly followed by the "raw" pubdate value. I think this is because of improper quoting (I've tried various combinations), or maybe it's not possible to combine two functions.
Without knowing what you tried and what you want to do it is hard to say much. It is very possible that what you want to do is doable only in general program mode, which allows arbitrary function nesting.
Quote:
For anyone playing around with combined fields: I found that if you let Calibre display a combined field as a column in the "grid view", and single click on a row in that column (just like you would when you'd wanted to edit a value), Calibre lets you edit the function directly with a live preview of the result (!). I don't think that functionality is explained in the manual, it's very helpful when playing around with functions.
You can do this without creating a column by using the Template tester. I added it to the context menu for "books in the library" so I can open it on any book with a right-click.
chaley is offline   Reply With Quote