mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update the tag browser icon documentation
This commit is contained in:
parent
4fa7f55516
commit
3bc202ba7e
@ -739,8 +739,10 @@ To choose icons for values in categories, right-click on a value then choose `Ma
|
|||||||
|
|
||||||
* ``category``: the lookup name of the category, for example ``authors``, ``series``, ``#mycolumn``.
|
* ``category``: the lookup name of the category, for example ``authors``, ``series``, ``#mycolumn``.
|
||||||
* ``value``: the value of the item within the category.
|
* ``value``: the value of the item within the category.
|
||||||
|
* ``count``: the number of books with this value. If the value is part of a hierarchy then the count includes the children.
|
||||||
|
* ``avg_rating``: the average rating for books with this value. If the value is part of a hierarchy then the average includes the children.
|
||||||
|
|
||||||
Book metadata such as title is not available.
|
Book metadata such as title is not available. Template database functions such as book_count() and book_values() will work, but the performance might not be acceptable. Python templates have full access to the calibre database API.
|
||||||
|
|
||||||
For example, this template specifies that any value in the clicked-on category beginning with `History` will have an icon named ``flower.png``::
|
For example, this template specifies that any value in the clicked-on category beginning with `History` will have an icon named ``flower.png``::
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user