08-23-2011, 12:40 AM | #1 |
Zealot
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
|
Composite column or not ?
Hi,
Here's what I'm trying to do : - If a book has the tag 'mytag' => rating column = 1 automatically. Is it possible ? I tried with a composite column, and used the example found in the sticky post {formats:contains(EPUB, Yes,)} modified to {tags:contains(mytag, Yes,)} It works, but instead of 'yes', I would like to display 1 star. I don't even know if I need a composite column. Can it be accomplished with the native column 'Rating' ? Thanks. (I'm not quite a novice in programmation, but I must say I 'm having a hard time with the template language :-) |
08-23-2011, 01:44 AM | #2 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
I'd try having a look at what the general program mode for templates can accomplish. If you can do it anywhere, you can do it there.
|
Advert | |
|
08-23-2011, 11:48 AM | #3 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
You can't do it in the native column. (As soon as I say that, someone will probably correct me, most likely Charles ) You need a composite column to build the content from another column (tags). I'm pretty sure composite columns aren't designed to do star rating displays, but I'll be interested to see Charles' comments.
|
08-24-2011, 01:27 AM | #4 |
Zealot
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
|
Ok, maybe I should play with something less complex :-)
Thanks, guys. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugboard, template, and custom composite column recipes | chaley | Library Management | 971 | 12-04-2023 04:57 PM |
Q: multi-column PDF to single column mobi format converstion | auburn1975 | Calibre | 7 | 01-28-2012 06:11 PM |
composite custom columns sorted numerically | Doug-W | Library Management | 2 | 02-18-2011 02:16 AM |
Custom Composite Column | silentguy | Calibre | 4 | 11-24-2010 10:28 AM |
pdf to lrf with 2 column and 1 column pages in same file | danielwille | Sony Reader | 3 | 11-12-2008 10:57 AM |