View Single Post
Old 09-20-2011, 01:10 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,463
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I am not sure what you mean by "export script". Also, I am confused by the term "function call".

From what I can tell, you have a composite custom column called "folder_on_device_10". The template for that column is
Code:
{title:folderOnDevice({#genre},{series},{series_index},{#max_number_in_series},10)}
I assume that 'folderOnDevice' is a custom template function.

First comment: you should not use template references inside function arguments. There are many ways that this breaks. I consider it a bug that it works at all, but people have asked me not to fix it.

Instead of template references, you should be using one of the program modes. Given that your function does not use title, you should probably use general program mode. Your function would look something like:
Code:
program:folderOnDevice(field('#genre'), field('series'), field('series_index'), field('#max_number_in_series'),10)
Second comment (really a question): what do you mean by "export"? Do you mean save to disk or send to device?
chaley is offline   Reply With Quote