View Single Post
Old 09-22-2011, 01:02 PM   #126
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: 11,757
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by enriquep View Post
I've managed to replace the +'s that the plugin puts in the title spaces by -'s, as required by this particular website:
Code:
http://www.lecturalia.com/libros/s/{title:re(\+,-)}
BUT i still need to make another change: the "book-title" chain has to be in lowercase. I am aware that there is a lowercase() function, and I've tried combining it with the re(\+,-)... unsuccessfully for now.
The problem is that in single function mode (which you are using), you cannot nest function calls. To avoid this restriction you should use template program mode or general program mode.

Try this using template program mode
Code:
http://www.lecturalia.com/libros/s/{title:'lowercase(re($, '\+', '-'))'}
or this in general program mode
Code:
program: strcat('http://www.lecturalia.com/libros/s/', lowercase(re(field('title'), '\+', '-')))
chaley is offline   Reply With Quote