Quote:
Originally Posted by enriquep
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'), '\+', '-')))