View Single Post
Old 03-25-2015, 02:38 AM   #6
myki
Zealot
myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.
 
Posts: 126
Karma: 20236
Join Date: May 2014
Device: Kinde PW v1, Kobo H2O, Onyx Boox T68
Thanks for your help, I like it clear and efficient
I have (I hope) a last improvement to do :
I need to make a custom field (#kobocollections), which content is feed by another custom field if not empty (#categorieperso), and a custom value if empty ({authors:sublist(0,1,&)}{series:| - |}).

I succeeded by using :
Code:
program:
	a = field('#categorieperso');
	b = template('{authors:sublist(0,1,&)}{series:| - |}');
	test(field('#categorieperso'), a, b)
But can you explain to me why with this :
Code:
{#categorieperso:'ifempty($, template('{authors:sublist(0,1,&)}{series:| - |}'))'}
I get a template error formatter when my serie own a " ' " ??

Can you help me again, please ??

Last edited by myki; 03-25-2015 at 03:56 AM.
myki is offline   Reply With Quote