|
|
#1 |
|
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Jul 2012
Device: Android, Nook Simple Touch, Nook Color
|
Help using custom column templates
Can anyone give me an example of how I would use hascover() and how i could use test() to see if the Series Column has data? I tried, but it keeps saying field not found please and thank you. I am comfortable with most programming so usually once I see a few examples I am ok. I look forward to playing more with this system. EDIT: OK,...I got the test() function to work after about another hour of playing. now just need help with hascover - will keep trying Last edited by gabby98; 07-17-2012 at 05:06 PM. |
|
|
|
|
|
#2 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,879
Karma: 285970
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Quote:
has_cover: return 'yes' if the book has a cover, otherwise "no cover". Code:
program: ifempty(has_cover(), 'no cover') Code:
program: test(field('series'), 'Yes', 'No')
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Jul 2012
Device: Android, Nook Simple Touch, Nook Color
|
Thank you...i got it now.
Determined the series think using a different format, but it still works. The hascover thing make sense now that i see the who "program: " option. I thought that was a notation thing ty |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| custom date column from two state column | Dopedangel | Library Management | 7 | 01-03-2012 08:20 AM |
| using templates/pyhon and custom columns to extract specific data from tags | smoothrolla | Library Management | 6 | 11-10-2011 05:12 PM |
| help with custom column | Noughty | Library Management | 4 | 10-15-2011 05:31 AM |
| Can custom book data be displayed in a custom column? | kiwidude | Development | 9 | 03-02-2011 05:35 AM |
| Techniques to use plugboards, custom columns and templates | kovidgoyal | Library Management | 0 | 01-26-2011 04:21 PM |