Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-17-2015, 05:44 AM   #1
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
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>
It works.
However, if there is no "translator" information, the word "dịch" still appears. Is it possible to show it only when translator is shown?
nqk is offline   Reply With Quote
Old 11-17-2015, 05:56 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:35 AM.


MobileRead.com is a privately owned, operated and funded community.