Quote:
Originally Posted by Laval
Hello I thank you for your reply. I would have one last question, I created a custom list template in my content server like this "Number {series_index} series {series}" and I would like to have the total number of books (5 in my example below) of the series. Ex: "Number 2 of 5 of the series (name of the series)".
Thank you!
|
caliber knows the number of books in each series, but cannot access those values? why?
You can see the number of books in each series from the series tab in the gui or in manage series.
A crappy solution that I am using is to use the "Author Book Count" plugin (which counts ALL the books of an author, not of the series, but it is an approximation) with this I create a custom column that shows the number of books of the author in the columns of the books that belong to a series.
I leave you this personalized column in case you are interested.
Code:
##### config to display a column with the title [serial no./total serial no.] -> dune [01/3]
#author_book_count column (### you should hide this column ###)
has the number of books per author (using the Author Book Count plugin)
column #is_series (### you should hide this column ###)
(obviously, for books that do not belong to any series, it counts them as series of 1 book, we are not interested in that)
(that's why this column is hidden and will serve as an auxiliary column, to show this information only if it belongs to a series)
{series} [{series_index:0>2s}/{#author_book_count}]
column #series_total (### this is the kind of column you are loking for !! ###)
(if the column 'series' is blank #series_total is left blank, otherwise we put what the column #is_series says)
program:
if field('series')==''
then ''
else
field('#is_series')
fi
You will see in the new column
Title [actual book with 2 digits format filled with 0 / Total serie books]
Example:
Dune [01/3]