View Single Post
Old 04-06-2015, 09:56 PM   #3
StillReading
Enthusiast
StillReading began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Sep 2014
Device: none
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.

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.
StillReading is offline   Reply With Quote