![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71
Karma: 143132
Join Date: Sep 2010
Device: Kindle Keyboard 3G
|
![]()
Hello,
i want to add the ID (the integer value) of a book to the cover. The lookup name is {id}. But when I add this value in a cover template I'll get an error: EXCEPTION: Value: unknown field id My template and the error message is attached. Greetings, Maria |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,689
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I had problems with using {id}… can't recall exactly where, might have been in the book jacket. I never liked the column name 'id' anyway, so I created a virtual column called book_row/Book # and when I used it the problem went away.
BR Last edited by BetterRed; 11-14-2023 at 08:23 PM. |
![]() |
![]() |
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,296
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes database fields like id are not available for covers as covers need to be generated for standalone books as well, for example, when generating a cover for an epub without one on the command line.
|
![]() |
![]() |
![]() |
#4 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 112
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
|
Quote:
Create a custom column (I called mine 'fakeid'), 'Column built from other columns', with the template '{id}'. Then use {#fakeid} in your cover template. I'm using calibre 6.29 in Windows 10, 'Generate Cover' plugin is current. |
|
![]() |
![]() |
![]() |
#5 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,689
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,997
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
FWIW I think this {id} on cover is a real bad idea.
There are things that trigger an ID change. I used to include {id} in my file name, when all of a sudden updating a book got a different file ID than before and I had multiples of the (supposed) same book on my device. |
![]() |
![]() |
![]() |
#7 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 112
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
|
|
![]() |
![]() |
![]() |
#8 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 112
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
|
Quote:
However, we were asked 'is this a good idea?', but 'how can I do this?'. "I didn't ask 'how big is the room?', I said 'I cast fireball'." People who pay me ignore my advice on best practice (and I have been paid a lot fixing these situations), so I no longer judge... besides, I have enough weird questions of my own to try to talk someone else out of theirs. ![]() |
|
![]() |
![]() |
![]() |
Tags |
exception, field, unknown, {id} |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove cover or generate default cover in content server | ilovejedd | Server | 2 | 09-24-2018 11:02 AM |
Generate cover? | MikeKReader | Calibre | 4 | 04-16-2017 09:21 PM |
0.9.5 Generate Cover plugin | pbw | Plugins | 2 | 11-03-2012 10:45 AM |
Generate cover | Schaapje82 | Calibre | 13 | 09-05-2010 12:02 PM |
Generate Cover | Mythlandia | Calibre | 27 | 06-27-2010 08:02 PM |