View Single Post
Old 09-28-2013, 12:50 PM   #5
gabby98
Wizard
gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.
 
gabby98's Avatar
 
Posts: 1,751
Karma: 2667650
Join Date: Jul 2012
Device: Android, Nook Simple Touch, Nook Color, ..., Glo
Quote:
Originally Posted by chaley View Post
That template can break in mysterious ways because it uses subtemplates, something that doesn't work well in single function mode templates. As the documentation says: Do not use subtemplates (`{ ... }`) as function arguments. Instead, use template program mode and general program mode.

I would use general program mode for this. Something like
Code:
program:
test(
field('#collection'), 
template('[Collection] {#collection}/{title}/{title}'),
template('{author}/{#myseries2}{series}/{series_index:0>2s} {title}/{title}')
)
I'll take another look ty
gabby98 is offline   Reply With Quote