View Single Post
Old 08-19-2012, 05:31 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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You must choose one of single-function mode, template program mode, or general program mode. The syntax is different for each of the three.

For example, your template
Code:
{author_sort:'sublist(re($,\.,),0,1,&)'} or {author_sort:'re(sublist($,0,1,&),\.,)'}
is in template program mode where all string constants must be quoted. It should be written something like
Code:
{author_sort:'sublist(re($, '\.', ''),0,1,'&')'}
or
Code:
{author_sort:'re(sublist($,0,1,'&'), '\.', '')'}

Last edited by chaley; 08-20-2012 at 03:16 AM.
chaley is offline   Reply With Quote