View Single Post
Old 06-23-2014, 04:31 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,134
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by OldSoldier View Post
I copied my template.xhtml file to my
%UserID%/AppData/Roaming/caliber/resources/catalog directory. I then edited the template.xhtml file to show:

<td class="date">{written}</td> instead of <td class="date">{pubyear}</td>.

I ran Calibre and created a catalog and it is still showing the year published instead of the contents of the "written" field. I know nothing of .xhtml and was just trying a simple substitution. I did try {#written} as well (remembering to close and reopen caliber) but with no effect.

Am I changing the right portion of the template? Should I be changing something else? FWIW, my "written" field is a text field so that I can enter dates like "1308-1321" for "The Divine Comedy" or "1962, 1964" for an omnibus edition of two novels.

Thank you again for your assistance.
1) I am not sure if you can use custom fields
2) You might have a datatype clash if you use a text field and it expects a datetype
theducks is offline   Reply With Quote