|
|
#1 |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2012
Device: Windows 10 Tablet
|
I am trying to get my files to save to template using a hierarchy tag structure.
So, example, say I have a recipe book, it would like like this in Calibre: Title: Favourite Recipes Author: Various Authors Tag:600 Technology.640 - Recipes Fiction:Non-Fiction (Custom column) and Title:IT Author:Stephen King Tag:800 Literature Fiction:Fiction I am trying to save these to disk using a template to split the fiction and non-fiction. So far, I have got the following: Code:
program:
middle = contains(
field('#fiction'),
'Non-Fiction',
strcat(field('tags'),"/",field('title'),' - ',field('author'),""),
strcat(field('author_sort'),'/',field('title'))
);
strcat(field('#fiction'),'/',middle)
- Non-Fiction\600 Technology\640 - Recipes\Favourite Recipes - Various Authors - Fiction\King, Stephen\IT I've tried playing around with {tags:subitems(0,1)||/} but I just cannot get it to work. Any help would be appreciated. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with 'Send to Disk' template | Kaimeirra | Library Management | 13 | 03-14-2018 09:22 PM |
| Using Tags or tag-like column in Save To Disk/Send to Device | BookJunkieLI | Library Management | 34 | 05-03-2015 06:45 AM |
| Send to Device (iPad) vs. Save to Disk (cover issue) | 1611mac | Devices | 17 | 04-20-2011 12:19 PM |
| Save to disk question | Amalthia | Calibre | 2 | 08-16-2010 07:17 PM |
| Save to Disk or Send to device | Dopedangel | Calibre | 13 | 12-11-2009 02:56 PM |