View Single Post
Old 11-11-2011, 12:05 PM   #5
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Khan-Dam View Post
does it possible to parametrize "2s" with the number of digit of the greatest series_index in the serie ?
I think you are asking if the template can know the maximum series_index in the series, so that the output can be "book 3 of 7" where "3" is the series_index and "7" is the maximum series_index in that series. It's not possible. Templates work one book at a time. The template as applied to book 3 doesn't have any idea what's in the metadata fields of the other books. Specifically, it doesn't know if there are any other books in that series with a higher series_index. You could do this with code to fill a custom column with the max for each series, but it would take some work and you'd need to run it regularly to keep it correct.

I hate saying it can't be done, as most of the time, Charles knows how to do it, or will write code to do it, but I also hate not answering when I'm pretty sure I know the answer.

Last edited by Starson17; 11-11-2011 at 12:07 PM.
Starson17 is offline   Reply With Quote