![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Jacket items with condition?
Hi you guys,
I created a custom column for "Translator" and I inserted to Jacket like this. Code:
<p class="description"><b>{_translator}</b> dịch</p> However, if there is no "translator" information, the word "dịch" still appears. Is it possible to show it only when translator is shown? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No there is no conditionality in jacket templates. WHat you can do is create a custom column with a template that evaluates to "block" when the translators column is not empty and "none" when it is empty, and then use
<p class="description" style="display:{_ccname}">{_translator} dich</p> Change ccname above to the name of the new custom column. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle 4 NT factory condition | stexyn | Kindle Developer's Corner | 2 | 08-27-2012 06:07 PM |
Ended DR1000S excellent 'as new' condition | Bluebaize | Flea Market | 8 | 04-16-2010 05:50 PM |
Bug: Can't add items to the library and existin items corrupted | ckole | enTourage Archive | 11 | 04-16-2010 01:13 AM |
Ended Kindle 1 - Flawless Condition | Mr. Goodbar | Flea Market | 1 | 07-01-2009 02:35 PM |
Sell Mint Condition Kindle | KindleKid | Flea Market | 12 | 01-21-2009 10:05 PM |