View Single Post
Old 09-07-2014, 04:37 AM   #6
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,480
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by rebl View Post
Thank you eschwartz, so in program mode the re() function is used with three arguments, while in the single-function mode is used with just two arguments?
In single function mode the contents of the field referenced in the template are passed as a hidden first parameter. So in the template
Code:
{comments:shorten(50,...,50)}
shorten has
Code:
field('comments')
as its first parameter,
chaley is offline   Reply With Quote