View Single Post
Old 09-22-2021, 04:02 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,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
For various historical reasons all non-composite fields are cleaned when used in a save path. That won't change.

You can work around this by applying a function to the component when you use it in a template. The function is applied after the component is cleaned. Example:
Code:
{#kobopath:re(_,/)}/{author_sort:sublist(0,1,&)}/{title} - {authors}
which will convert all underscores in #kobopath to slashes. If you don't want *all* underscores converted then use some unique string to mean slash, for example ZZZ, then use the template
Code:
{#kobopath:re(ZZZ,/)}/{author_sort:sublist(0,1,&)}/{title} - {authors}
chaley is offline   Reply With Quote