View Single Post
Old 11-25-2012, 04:38 PM   #10
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,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by GarfieldKlon View Post
I don't want to write into the calibre folder structure, I just want to export my books somewhere else with my own defined logic.

I think this could be the solution:
sublist(val, start_index, end_index, separator)

edit:
Ok here's something ugly, but it works:
{#genre:subitems(0,1)}/{#genre:subitems(1,2)}/{#genre:subitems(2,3)}/{#genre:subitems(3,4)}/{#genre:subitems(4,5)}/{title}/{title}

I don't know how to dynamically create the folder structure.
Try the template
Code:
{#genre:re(\.,/)}
This will make a folder structure out of the genres as long as there is only one genre associated with a book.
chaley is offline   Reply With Quote